Package com.linkedin.databus.groupleader.pub

Examples of com.linkedin.databus.groupleader.pub.GroupLeadershipInfo


    // This list will be sorted by group name, since it is added to in order
    List<GroupLeadershipInfo> sortedGroupLeadershipInfos = new ArrayList<GroupLeadershipInfo>();

    for (String groupName : sortedGroupNames)
    {
      GroupLeadershipInfo groupLeadershipInfo = getGroupLeadershipInfo(baseZkPath,groupName);
      sortedGroupLeadershipInfos.add(groupLeadershipInfo);
    }

    GroupsLeadershipInfo groupsLeadershipInfo = new GroupsLeadershipInfo(
      Collections.unmodifiableList(sortedGroupNames),
View Full Code Here


        memberName,
        memberName.equals(leaderName));
      sortedMemberInfos.add(groupMemberInfo);
    }

    GroupLeadershipInfo groupLeadershipInfo = new GroupLeadershipInfo(groupName,
      leaderName,
      Collections.unmodifiableList(sortedMemberNames),
      Collections.unmodifiableList(sortedMemberInfos));

    return groupLeadershipInfo;
View Full Code Here

  }
 
  public synchronized  List<String> getMembers()
  {
    if (_groupSession != null) {
      GroupLeadershipInfo info =  _groupSession.getGroupLeadershipInfo();
      return info.getMemberNames();
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.linkedin.databus.groupleader.pub.GroupLeadershipInfo

Copyright © 2018 www.massapicom. 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.