|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.cluster.impl.ClusterProxy
public class ClusterProxy
Constructor Summary | |
---|---|
ClusterProxy(ClusterServiceImpl clusterService)
|
Method Summary | |
---|---|
String |
addMembershipListener(MembershipListener listener)
Adds MembershipListener to listen for membership updates. |
long |
getClusterTime()
Returns the cluster-wide time in milliseconds. |
Member |
getLocalMember()
Returns this Hazelcast instance member. |
Set<Member> |
getMembers()
Set of the current members in the cluster. |
boolean |
removeMembershipListener(String registrationId)
Removes the specified MembershipListener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterProxy(ClusterServiceImpl clusterService)
Method Detail |
---|
public Member getLocalMember()
Cluster
getLocalMember
in interface Cluster
public Set<Member> getMembers()
Cluster
getMembers
in interface Cluster
public long getClusterTime()
Cluster
getClusterTime
in interface Cluster
public String addMembershipListener(MembershipListener listener)
Cluster
Cluster.removeMembershipListener(String)
method.
If the MembershipListener implements the InitialMembershipListener
interface, it will also receive
the InitialMembershipEvent
.
There is no check for duplicate registrations, so if you register the listener twice, it will get events twice.
addMembershipListener
in interface Cluster
listener
- membership listener
Cluster.removeMembershipListener(String)
public boolean removeMembershipListener(String registrationId)
Cluster
removeMembershipListener
in interface Cluster
registrationId
- the registrationId of MembershipListener to remove.
Cluster.addMembershipListener(MembershipListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |