com.hazelcast.cluster
public interface ClusterService extends CoreService
Cluster
interface.Modifier and Type | Method and Description |
---|---|
ClusterClock |
getClusterClock()
Returns the
ClusterClock of the cluster. |
String |
getClusterId()
Returns UUID for the cluster.
|
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> |
getMemberList()
Gets the collection of members.
|
Collection<Member> |
getMembers()
Returns a collection of all members part of the cluster.
|
int |
getSize()
Gets the current number of members.
|
Address |
getThisAddress()
Gets the address of this member.
|
boolean |
isMaster()
Checks if this member is the master.
|
MemberImpl getMember(Address address)
address
- the address of the member to lookup.MemberImpl getMember(String uuid)
uuid
- the uuid of the memberCollection<MemberImpl> getMemberList()
Collection<Member> getMembers()
Address getMasterAddress()
boolean isMaster()
Address getThisAddress()
int getSize()
ClusterClock getClusterClock()
ClusterClock
of the cluster.
The returned value will never be null and will never change.String getClusterId()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.