Examples of GroupList


Examples of com.alibaba.rocketmq.common.protocol.body.GroupList

                RemotingCommand.createRequestCommand(RequestCode.QUERY_TOPIC_CONSUME_BY_WHO, requestHeader);

        RemotingCommand response = this.remotingClient.invokeSync(addr, request, timeoutMillis);
        switch (response.getCode()) {
        case ResponseCode.SUCCESS: {
            GroupList groupList = GroupList.decode(response.getBody(), GroupList.class);
            return groupList;
        }
        default:
            break;
        }
View Full Code Here

Examples of com.alibaba.rocketmq.common.protocol.body.GroupList

                    .decodeCommandCustomHeader(QueryTopicConsumeByWhoRequestHeader.class);

        HashSet<String> groups =
                this.brokerController.getConsumerManager().queryTopicConsumeByWho(requestHeader.getTopic());

        GroupList groupList = new GroupList();
        groupList.setGroupList(groups);
        byte[] body = groupList.encode();

        response.setBody(body);
        response.setCode(ResponseCode.SUCCESS);
        response.setRemark(null);
        return response;
View Full Code Here

Examples of com.alibaba.rocketmq.common.protocol.body.GroupList

                RemotingCommand.createRequestCommand(RequestCode.QUERY_TOPIC_CONSUME_BY_WHO, requestHeader);

        RemotingCommand response = this.remotingClient.invokeSync(addr, request, timeoutMillis);
        switch (response.getCode()) {
        case ResponseCode.SUCCESS: {
            GroupList groupList = GroupList.decode(response.getBody(), GroupList.class);
            return groupList;
        }
        default:
            break;
        }
View Full Code Here

Examples of com.alibaba.rocketmq.common.protocol.body.GroupList

                            || topic.startsWith(MixAll.DLQ_GROUP_TOPIC_PREFIX)) {
                        continue;
                    }

                    String clusterName = "";
                    GroupList groupList = new GroupList();

                    try {
                        clusterName =
                                this.findTopicBelongToWhichCluster(topic, clusterInfo, defaultMQAdminExt);
                        groupList = defaultMQAdminExt.queryTopicConsumeByWho(topic);
                    }
                    catch (Exception e) {
                    }

                    if (null == groupList || groupList.getGroupList().isEmpty()) {
                        groupList = new GroupList();
                        groupList.getGroupList().add("");
                    }

                    for (String group : groupList.getGroupList()) {
                        System.out.printf("%-20s  %-48s  %-48s\n",//
                            UtilAll.frontStringAtLeast(clusterName, 20),//
                            UtilAll.frontStringAtLeast(topic, 48),//
                            UtilAll.frontStringAtLeast(group, 48)//
                            );
View Full Code Here

Examples of com.centraview.common.GroupList

  /**
   * Returns and GroupList object (sub-class of DisplayList).
   */
  public GroupList getAllGroupList(int userId, HashMap preference)
  {
    GroupList  groupList = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactListLocalHome home = (ContactListLocalHome)ic.lookup("local/ContactList");
      ContactListLocal remote =  home.create();
View Full Code Here

Examples of com.google.gerrit.common.data.GroupList

      throws OrmException, NoSuchGroupException {
    final List<GroupDetail> groupDetailList = new ArrayList<GroupDetail>();
    for (final AccountGroup group : groups) {
      groupDetailList.add(groupDetailFactory.create(group.getId()).call());
    }
    return new GroupList(groupDetailList, identifiedUser.get()
        .getCapabilities().canCreateGroup());
  }
View Full Code Here

Examples of com.google.gerrit.common.data.GroupList

      }

      final VisibleGroups visibleGroups = visibleGroupsFactory.create();
      visibleGroups.setOnlyVisibleToAll(visibleToAll);
      visibleGroups.setGroupType(groupType);
      final GroupList groupList;
      if (!projects.isEmpty()) {
        groupList = visibleGroups.get(projects);
      } else if (user != null) {
        groupList = visibleGroups.get(userFactory.create(user));
      } else {
        groupList = visibleGroups.get();
      }

      final ColumnFormatter formatter = new ColumnFormatter(stdout, '\t');
      for (final GroupDetail groupDetail : groupList.getGroups()) {
        final AccountGroup g = groupDetail.group;
        formatter.addColumn(g.getName());
        if (verboseOutput) {
          formatter.addColumn(KeyUtil.decode(g.getGroupUUID().toString()));
          formatter.addColumn(
View Full Code Here

Examples of com.jidesoft.list.GroupList

   
    // build help
    final HelpViewer h = new HelpViewer(helpID);
   
    // build list
    final GroupList gl = new GroupList(listModel);
    gl.setCellRenderer(new IconRenderer());
    gl.setLayoutOrientation(JList.HORIZONTAL_WRAP);
    gl.addListSelectionListener(new ListSelectionListener() {
     
      @Override public void valueChanged(ListSelectionEvent lse) {
        if (lse.getValueIsAdjusting()) {
          return;
        }
       
        // update help
        h.setId(((INewFormElement) gl.getSelectedValue()).getHelpID());
       
      }
    });
   
    // build layout
    JPanel left = new JPanel(new BorderLayout());
    left.add(new YHeader(title, icon), BorderLayout.NORTH);
    left.add(gl, BorderLayout.CENTER);
   
    // show
    if (YDialog.show(title, YFactory.createHorizontPanel(left, h, "newform." + helpID), true) == false) {
      return null;
    }
   
    // add it?
    if (gl.getSelectedValue() != null) {
      return (INewFormElement) gl.getSelectedValue();
    }
    return null;
  }
View Full Code Here

Examples of io.fathom.cloud.identity.api.os.model.v3.GroupList

    @GET
    @Produces({ JSON })
    public GroupList listGroup() throws CloudException {
        AuthenticatedUser user = getAuthenticatedUser();

        GroupList response = new GroupList();
        response.groups = Lists.newArrayList();

        for (GroupData data : identityService.listGroups(user)) {
            Group domain = toModel(data);
            response.groups.add(domain);
View Full Code Here

Examples of org.jfree.report.GroupList

      changeFontInElement(event.getReport().getItemBand().getElements());
      changeFontInElement(event.getReport().getReportHeader().getElements());
      changeFontInElement(event.getReport().getReportFooter().getElements());
      changeFontInElement(event.getReport().getPageHeader().getElements());
      changeFontInElement(event.getReport().getPageFooter().getElements());
      GroupList list = event.getReport().getGroups();
      for (int i = 0; i < list.size(); i++) {
        Group g = list.get(i);
        changeFontInElement(g.getHeader().getElements());
        changeFontInElement(g.getFooter().getElements());
      }
    }
  }//}}}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.