|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClusterService
A service responsible for member related functionality. So members joining, leaving etc.
This API is an internal API; the end user will use theCluster interface.
| Method Summary | |
|---|---|
ClusterClock |
getClusterClock()
Returns the ClusterClock of the cluster. |
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. |
Collection<Member> |
getMembers()
Returns a collection of all members part of the cluster. |
int |
getSize()
Gets the current number of members. |
Address |
getThisAddress()
Gets the address of this member. |
boolean |
isMaster()
Checks if this member is the master. |
| Method Detail |
|---|
MemberImpl getMember(Address address)
address - the address of the member to lookup.
MemberImpl getMember(String uuid)
uuid - the uuid of the member
Collection<MemberImpl> getMemberList()
Collection<Member> getMembers()
Address getMasterAddress()
boolean isMaster()
Address getThisAddress()
int getSize()
ClusterClock getClusterClock()
ClusterClock of the cluster.
The returned value will never be null and will never change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||