|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.client.spi.impl.ClusterListenerSupport
com.hazelcast.client.spi.impl.ClientClusterServiceImpl
public class ClientClusterServiceImpl
The ClientClusterService
implementation.
Field Summary |
---|
Fields inherited from class com.hazelcast.client.spi.impl.ClusterListenerSupport |
---|
client |
Constructor Summary | |
---|---|
ClientClusterServiceImpl(HazelcastClientInstanceImpl client)
|
Method Summary | |
---|---|
String |
addMembershipListener(MembershipListener listener)
|
long |
getClusterTime()
Returns the cluster-time. |
Client |
getLocalClient()
|
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. |
int |
getSize()
Gets the current number of members. |
boolean |
removeMembershipListener(String registrationId)
|
void |
start()
|
Methods inherited from class com.hazelcast.client.spi.impl.ClusterListenerSupport |
---|
connectionAdded, connectionRemoved, connectToCluster, getOwnerConnectionAddress, getPrincipal, heartBeatStarted, heartBeatStopped, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientClusterServiceImpl(HazelcastClientInstanceImpl client)
Method Detail |
---|
public MemberImpl getMember(Address address)
ClientClusterService
address
- the address of the member to lookup.
public MemberImpl getMember(String uuid)
ClientClusterService
uuid
- the uuid of the member
public Collection<MemberImpl> 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 registered
public boolean removeMembershipListener(String registrationId)
registrationId
- of listener
public void start() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |