|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.resilientedge.jockey.peerbridge.SimpSockPeer
Represents a peer on the network
| Field Summary | |
protected static int |
nextPeerId_
|
protected static int |
NO_PEER_ID
|
| Constructor Summary | |
SimpSockPeer()
|
|
| Method Summary | |
int |
compareTo(java.lang.Object other)
Returns zero if the other network is the same as this network. |
protected static SimpSockPeer |
createNewPeer(java.lang.String peerSeed)
Create a new peer. |
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this peer. |
PBPeer |
fromPeerToken(PeerToken token)
Return a reference to a peer implementation, translated from a client side token. |
protected static java.lang.String |
getNextPeerId(java.lang.String peerSeed)
Return an Id for the next created peer. |
protected java.lang.String |
getPeerId()
Return the peer id. |
protected boolean |
isLocal()
Return the peer id. |
protected void |
setPeerId(java.lang.String id)
Set the id for this peer. |
PeerToken |
toPeerToken()
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 NO_PEER_ID
protected static int nextPeerId_
| Constructor Detail |
public SimpSockPeer()
| Method Detail |
public PeerToken toPeerToken()
toPeerToken in interface PBPeerpublic PBPeer fromPeerToken(PeerToken token)
fromPeerToken in interface PBPeerpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - network to comparepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - object to compareprotected static SimpSockPeer createNewPeer(java.lang.String peerSeed)
protected boolean isLocal()
protected java.lang.String getPeerId()
protected void setPeerId(java.lang.String id)
id - the peer idprotected static java.lang.String getNextPeerId(java.lang.String peerSeed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||