|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.peerbridge.LoopbackPeerGroup
A definition of a group within a network that performs the join, leave, create and delete.
Field Summary | |
protected static int |
nextGroupId_
|
protected static int |
WORLD_GROUP_ID
|
Constructor Summary | |
protected |
LoopbackPeerGroup(LoopbackNetManager manager,
int id)
Constructor. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Returns zero if the other peer group is the same as this group. |
void |
createGroup(PBPeerGroup newGroup)
Create a new group as a subgroup. |
void |
destroyGroup(PBPeerGroup newGroup)
Destroy a subgroup. |
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this peer. |
PBPeerGroup |
fromPeerGroupToken(PeerGroupToken token)
Return a reference to a peer group implementation, translated from a client side token. |
PBDirectory |
getDirectory()
Return a reference to a directory which can browse this group |
protected int |
getGroupId()
Return the group id. |
PBMessenger |
getMessenger()
Return a reference to a messenger capable of exchanging messages with peers in this peer group. |
protected static int |
getNextGroupId()
Return an Id for the next created group. |
static LoopbackPeerGroup |
getWorldGroup(LoopbackNetManager manager)
Returns a reference to the default group that contains all peer entities. |
void |
join()
Join the group. |
void |
leave()
Leave the group. |
PeerGroupToken |
toPeerGroupToken()
Return a copy of this object translated to a client side token. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int WORLD_GROUP_ID
protected static int nextGroupId_
Constructor Detail |
protected LoopbackPeerGroup(LoopbackNetManager manager, int id)
Method Detail |
public PBMessenger getMessenger()
getMessenger
in interface PBPeerGroup
public PBDirectory getDirectory()
getDirectory
in interface PBPeerGroup
public void join() throws PBSecurityViolationException
join
in interface PBPeerGroup
PBSecurityViolationException
- Description of Exceptionpublic void leave()
leave
in interface PBPeerGroup
public void createGroup(PBPeerGroup newGroup) throws PBSecurityViolationException
createGroup
in interface PBPeerGroup
newGroup
- Description of ParameterPBSecurityViolationException
- Description of Exceptionpublic void destroyGroup(PBPeerGroup newGroup) throws PBSecurityViolationException
destroyGroup
in interface PBPeerGroup
newGroup
- Description of ParameterPBSecurityViolationException
- Description of Exceptionpublic PeerGroupToken toPeerGroupToken()
toPeerGroupToken
in interface PBPeerGroup
public PBPeerGroup fromPeerGroupToken(PeerGroupToken token)
fromPeerGroupToken
in interface PBPeerGroup
public static LoopbackPeerGroup getWorldGroup(LoopbackNetManager manager)
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- group to comparepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- object to compareprotected int getGroupId()
protected static int getNextGroupId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |