|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.resilientedge.jockey.peerbridge.SimpSockPeerGroup
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 |
SimpSockPeerGroup(SimpSockNetManager 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 SimpSockPeerGroup |
getWorldGroup(SimpSockNetManager 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 SimpSockPeerGroup(SimpSockNetManager manager,
int id)
| Method Detail |
public PBMessenger getMessenger()
getMessenger in interface PBPeerGrouppublic PBDirectory getDirectory()
getDirectory in interface PBPeerGroup
public void join()
throws PBSecurityViolationException
join in interface PBPeerGroupPBSecurityViolationException - Description of Exceptionpublic void leave()
leave in interface PBPeerGroup
public void createGroup(PBPeerGroup newGroup)
throws PBSecurityViolationException
createGroup in interface PBPeerGroupnewGroup - Description of ParameterPBSecurityViolationException - Description of Exception
public void destroyGroup(PBPeerGroup newGroup)
throws PBSecurityViolationException
destroyGroup in interface PBPeerGroupnewGroup - Description of ParameterPBSecurityViolationException - Description of Exceptionpublic PeerGroupToken toPeerGroupToken()
toPeerGroupToken in interface PBPeerGrouppublic PBPeerGroup fromPeerGroupToken(PeerGroupToken token)
fromPeerGroupToken in interface PBPeerGrouppublic static SimpSockPeerGroup getWorldGroup(SimpSockNetManager manager)
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - group to comparepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - 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 | |||||||||