org.resilientedge.jockey.peerbridge
Interface PBPeer

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
LoopbackPeer, PBAbstractPeer, SimpSockPeer

public interface PBPeer
extends java.lang.Comparable

Represents a peer on the network

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Method Summary
 PBPeer fromPeerToken(PeerToken token)
          Return a reference to a peer implementation, translated from a client side token.
 PeerToken toPeerToken()
          Return a copy of this object translated to a client side token.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

toPeerToken

public PeerToken toPeerToken()
Return a copy of this object translated to a client side token.
Returns:
a PI PeerToken

fromPeerToken

public PBPeer fromPeerToken(PeerToken token)
Return a reference to a peer implementation, translated from a client side token. This must return an identical instance to the one that created the token; this implies a registry of peers and some sort of reference counting, or at least a way to reconstruct the peer from the token.
Returns:
a PI PeerGroupToken


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.