|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.peerbridge.LoopbackPeer
Represents a peer on the network
Field Summary | |
protected static int |
nextPeerId_
|
protected static int |
NO_PEER_ID
|
Constructor Summary | |
LoopbackPeer()
|
Method Summary | |
int |
compareTo(java.lang.Object other)
Returns zero if the other network is the same as this network. |
protected static LoopbackPeer |
createNewPeer()
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()
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 LoopbackPeer()
Method Detail |
public PeerToken toPeerToken()
toPeerToken
in interface PBPeer
public PBPeer fromPeerToken(PeerToken token)
fromPeerToken
in interface PBPeer
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- network to comparepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- object to compareprotected static LoopbackPeer createNewPeer()
protected boolean isLocal()
protected java.lang.String getPeerId()
protected void setPeerId(java.lang.String id)
id
- the peer idprotected static java.lang.String getNextPeerId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |