public class ClientClusterServiceImpl extends ClusterListenerSupport
ClientClusterService implementation.client| Constructor and Description |
|---|
ClientClusterServiceImpl(HazelcastClientInstanceImpl client,
Collection<AddressProvider> addressProviders) |
| 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.
|
int |
getSize()
Gets the current number of members.
|
boolean |
removeMembershipListener(String registrationId) |
void |
start() |
connectionAdded, connectionRemoved, connectToCluster, getOwnerConnectionAddress, getPrincipal, heartBeatStarted, heartBeatStopped, init, shutdownpublic ClientClusterServiceImpl(HazelcastClientInstanceImpl client, Collection<AddressProvider> addressProviders)
public Member getMember(Address address)
ClientClusterServiceaddress - the address of the member to lookup.public Member getMember(String uuid)
ClientClusterServiceuuid - the uuid of the memberpublic Collection<Member> getMemberList()
ClientClusterServicepublic Address getMasterAddress()
ClientClusterServicepublic int getSize()
ClientClusterServicepublic long getClusterTime()
ClientClusterServicepublic Client getLocalClient()
public String addMembershipListener(MembershipListener listener)
listener - to be registeredpublic boolean removeMembershipListener(String registrationId)
registrationId - of listenerCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.