Methods Summary |
---|
public Member | findMemberByName(java.lang.String name)Return the member by name
|
public Member | getLocalMember(boolean incAliveTime)Returns the member object that defines this member
|
public Member | getMember(Member mbr)
|
public Member[] | getMembers()Returns a list of all the members in the cluster.
|
public java.lang.String[] | getMembersByName()Return all members by name
|
public java.util.Properties | getProperties()Returns the properties for the configuration used.
|
public boolean | hasMembers()
|
public void | removeMembershipListener()removes the membership listener.
|
public void | setDomain(byte[] domain)
|
public void | setLocalMemberProperties(java.lang.String listenHost, int listenPort)Sets the local member properties for broadcasting
|
public void | setMembershipListener(MembershipListener listener)Sets the membership listener, only one listener can be added.
If you call this method twice, the last listener will be used.
|
public void | setPayload(byte[] payload)Set a payload to be broadcasted with each membership
broadcast.
|
public void | setProperties(java.util.Properties properties)Sets the properties for the membership service. This must be called before
the start() method is called.
The properties are implementation specific.
|
public void | start()Starts the membership service. If a membership listeners is added
the listener will start to receive membership events.
Performs a start level 1 and 2
|
public void | start(int level)Starts the membership service. If a membership listeners is added
the listener will start to receive membership events.
|
public void | stop(int level)Starts the membership service. If a membership listeners is added
the listener will start to receive membership events.
|