public interface ClusterService extends CoreService, Cluster
Cluster interface.| Modifier and Type | Method and Description | 
|---|---|
| ClusterClock | getClusterClock()Returns the  ClusterClockof the cluster. | 
| String | getClusterId()Returns UUID for the cluster. | 
| Member | getLocalMember()Gets the local member instance. | 
| Address | getMasterAddress()Returns the address of the master member. | 
| MemberImpl | getMember(Address address)Gets the member for the given address. | 
| MemberImpl | getMember(String uuid)Gets the member with the given uuid. | 
| Collection<MemberImpl> | getMemberImpls()Gets the collection of members. | 
| Collection<Member> | getMembers(MemberSelector selector)Returns a collection of the members that satisfy the given  MemberSelector. | 
| int | getSize()Gets the current number of members. | 
| int | getSize(MemberSelector selector)Gets the number of members that satisfy the given  MemberSelectorinstance. | 
| Address | getThisAddress()Gets the address of this member. | 
| boolean | isMaster()Checks if this member is the master. | 
addMembershipListener, changeClusterState, changeClusterState, getClusterState, getClusterTime, getMembers, removeMembershipListener, shutdown, shutdownMemberImpl getMember(Address address)
address - the address of the member to lookup.MemberImpl getMember(String uuid)
uuid - the uuid of the memberCollection<MemberImpl> getMemberImpls()
Collection<Member> getMembers(MemberSelector selector)
MemberSelector.selector - MemberSelector instance to filter members to returnMemberSelector.Address getMasterAddress()
boolean isMaster()
Address getThisAddress()
Member getLocalMember()
getLocalMember in interface Clusterint getSize()
int getSize(MemberSelector selector)
MemberSelector instance.selector - MemberSelector instance that filters members to be counted.MemberSelector instance.ClusterClock getClusterClock()
ClusterClock of the cluster.
 The returned value will never be null and will never change.String getClusterId()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.