public interface ClientClusterService
| Modifier and Type | Method and Description |
|---|---|
String |
addMembershipListener(MembershipListener listener) |
long |
getClusterTime()
Returns the cluster-time.
|
Client |
getLocalClient() |
Address |
getMasterAddress()
Returns the address of the master member.
|
Member |
getMember(Address address)
Gets the member for the given address.
|
Member |
getMember(String uuid)
Gets the member with the given uuid.
|
Collection<Member> |
getMemberList()
Gets the collection of members.
|
Collection<Member> |
getMembers(MemberSelector selector)
Returns a collection of the members that satisfy the given
MemberSelector. |
Address |
getOwnerConnectionAddress()
Owner connection is opened to owner member of the client in the cluster.
|
int |
getSize()
Gets the current number of members.
|
int |
getSize(MemberSelector selector)
Gets the number of members that satisfy the given
MemberSelector instance. |
boolean |
removeMembershipListener(String registrationId) |
Client getLocalClient()
Member getMember(Address address)
address - the address of the member to lookup.Member getMember(String uuid)
uuid - the uuid of the memberCollection<Member> getMemberList()
Collection<Member> getMembers(MemberSelector selector)
MemberSelector.selector - MemberSelector instance to filter members to returnMemberSelector.Address getMasterAddress()
int getSize()
int getSize(MemberSelector selector)
MemberSelector instance.selector - MemberSelector instance that filters members to be counted.MemberSelector instance.long getClusterTime()
String addMembershipListener(MembershipListener listener)
listener - to be registeredboolean removeMembershipListener(String registrationId)
registrationId - of listenerAddress getOwnerConnectionAddress()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.