|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcs.GcsMembershipInfo
public abstract class GcsMembershipInfo
Used for conveying detailed information about changes of groups structures. GcsMembershipInfo object is a part of membership messages.
Nested Class Summary | |
---|---|
class |
GcsMembershipInfo.GcsVirtualSynchronySet
|
Constructor Summary | |
---|---|
protected |
GcsMembershipInfo()
Default constructor |
Method Summary | |
---|---|
abstract GcsGroup |
getDisconnected()
Returns the private group of the disconnected client if the message is caused by disconnection. |
abstract GcsGroup |
getGroup()
Returns object representing the group which caused this message to be sent. |
abstract GcsGroupID |
getGroupID()
Returns the GcsGroupID object representing the group which caused this message to be sent. |
abstract GcsGroup |
getJoined()
Returns the private group of the client who joined the getGroup() group. |
abstract GcsGroup |
getLeft()
Returns the private group of the client who left the getGroup()
group. |
abstract GcsGroup[] |
getMembers()
Returns an array of GcsGroup objects representing all private groups that are currently members of the getGroup() group. |
abstract GcsMembershipInfo.GcsVirtualSynchronySet |
getMyVirtualSynchronySet()
|
abstract GcsGroup[] |
getStayed()
Deprecated, provided for convenience. |
abstract GcsMembershipInfo.GcsVirtualSynchronySet[] |
getVirtualSynchronySets()
|
abstract boolean |
isCausedByDisconnect()
Returns true if a member of getGroup() group disconnected. |
abstract boolean |
isCausedByJoin()
Returns true if there is a new member of getGroup() group. |
abstract boolean |
isCausedByLeave()
Returns true if a member of getGroup() group left the group. |
abstract boolean |
isCausedByNetwork()
Returns true if this message is caused by a network partition. |
abstract boolean |
isRegularMembership()
Returns true if this message is a regular membership message. |
abstract boolean |
isSelfLeave()
Returns true if this message is caused by leaving the getGroup()
group. |
abstract boolean |
isTransition()
Returns true if this is a transition message. |
abstract org.jdom.Element |
toXml()
Returns a XML representation of the GcsMembershipInfo message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GcsMembershipInfo()
Method Detail |
---|
public abstract GcsGroup getDisconnected()
public abstract GcsGroup getGroup()
public abstract GcsGroupID getGroupID()
isRegularMembership()
is true GcsGroupID
associated with group which caused this message to be sent, false
otherwisepublic abstract GcsGroup getJoined()
getGroup()
group.
getGroup()
group if both isRegularMembership()
and isCausedByJoin()
are true, null otherwisepublic abstract GcsGroup getLeft()
getGroup()
group.
getGroup()
group if both isRegularMembership()
and
isCausedByJoin()
are true, null otherwisepublic abstract GcsGroup[] getMembers()
getGroup()
group.
getGroup()
group if isRegularMembership()
is
true, null otherwisepublic abstract GcsMembershipInfo.GcsVirtualSynchronySet getMyVirtualSynchronySet()
public abstract GcsGroup[] getStayed()
isRegularMembership()
and isCausedByNetwork()
are true, null otherwisepublic abstract GcsMembershipInfo.GcsVirtualSynchronySet[] getVirtualSynchronySets()
public abstract boolean isCausedByDisconnect()
getGroup()
group disconnected. His
private group can be retrieved by calling getDisconnected()
.
getGroup()
group, false otherwisepublic abstract boolean isCausedByJoin()
getGroup()
group. His
private group can be retrieved by calling getJoined()
.
getGroup()
group, false
otherwisepublic abstract boolean isCausedByLeave()
getGroup()
group left the group. His
private group can be retrieved by calling getLeft()
.
getGroup()
group left the grouppublic abstract boolean isCausedByNetwork()
getStayed()
.
public abstract boolean isRegularMembership()
public abstract boolean isSelfLeave()
getGroup()
group.
getGroup()
group, false otherwisepublic abstract boolean isTransition()
public abstract org.jdom.Element toXml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |