public interface ClientClusterService
Address
or uuid.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 . |
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 look up.Member getMember(String uuid)
uuid
- The uuid of the member.Collection<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
- The listener to be registered.boolean removeMembershipListener(String registrationId)
registrationId
- The registrationId of the listener to be removed.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.