com.hazelcast.client.spi.impl
public class ClientClusterServiceImpl extends ClusterListenerSupport
ClientClusterService
implementation.client
Constructor and Description |
---|
ClientClusterServiceImpl(HazelcastClientInstanceImpl client) |
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
public ClientClusterServiceImpl(HazelcastClientInstanceImpl client)
public Member getMember(Address address)
ClientClusterService
address
- the address of the member to lookup.public Member getMember(String uuid)
ClientClusterService
uuid
- the uuid of the memberpublic Collection<Member> getMemberList()
ClientClusterService
public Address getMasterAddress()
ClientClusterService
public int getSize()
ClientClusterService
public long getClusterTime()
ClientClusterService
public Client getLocalClient()
public String addMembershipListener(MembershipListener listener)
listener
- to be registeredpublic boolean removeMembershipListener(String registrationId)
registrationId
- of listenerCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.