com.resilientedge.jockey.peerbridge
Class SimpSockEntityManager

java.lang.Object
  |
  +--com.resilientedge.jockey.peerbridge.SimpSockEntityManager
All Implemented Interfaces:
PBEntityManager

public class SimpSockEntityManager
extends java.lang.Object
implements PBEntityManager

This is a cache manager object that remembers entities discovered on the network, so that they can be referenced later.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
SimpSockEntityManager()
           
 
Method Summary
 PBApplication locateAppByToken(AppToken appToken)
          Return a reference to the app identified by the given token.
 PBPeer locatePeerByToken(PeerToken peerToken)
          Return a reference to the peer identified by the given token.
 PBPeerGroup locatePeerGroupByToken(PeerGroupToken groupToken)
          Return a reference to the peer group identified by the given token.
protected  void registerApp(PBApplication app)
          Add a peer that should be remembered
protected  void registerPeer(PBPeer peer)
          Add a peer that should be remembered
protected  void registerPeerGroup(PBPeerGroup group)
          Add a peer group that should be remembered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpSockEntityManager

public SimpSockEntityManager()
Method Detail

locateAppByToken

public PBApplication locateAppByToken(AppToken appToken)
Return a reference to the app identified by the given token.
Specified by:
locateAppByToken in interface PBEntityManager
Parameters:
appToken - token for the desired app
Returns:
reference to the real app

locatePeerByToken

public PBPeer locatePeerByToken(PeerToken peerToken)
Return a reference to the peer identified by the given token.
Specified by:
locatePeerByToken in interface PBEntityManager
Parameters:
peerToken - token for the desired peer
Returns:
reference to the real peer

locatePeerGroupByToken

public PBPeerGroup locatePeerGroupByToken(PeerGroupToken groupToken)
Return a reference to the peer group identified by the given token.
Specified by:
locatePeerGroupByToken in interface PBEntityManager
Parameters:
groupToken - token for the desired peer group
Returns:
reference to the real peer group

registerPeer

protected void registerPeer(PBPeer peer)
Add a peer that should be remembered
Parameters:
peer - new or newly discovered peer

registerPeerGroup

protected void registerPeerGroup(PBPeerGroup group)
Add a peer group that should be remembered
Parameters:
group - new or newly discovered group

registerApp

protected void registerApp(PBApplication app)
Add a peer that should be remembered
Parameters:
peer - new or newly discovered peer


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