org.resilientedge.jockey.peerbridge
Interface PBNetManager

All Known Implementing Classes:
LoopbackNetManager, PBAbstractNetManager, SimpSockNetManager

public interface PBNetManager

PBNetManager is the interface that should be implemented by an object that provides an interface to a particular peer network.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Method Summary
 PBApplication createApplication(AppDescriptor app, Authority[] authorities)
          Returns a PBApplication object
 PBEntityManager getEntityManager()
          Return an entitymanager that stores known peers from the peer network.
 PBNet getNetwork()
          Returns a PBNetwork describing the type of network that this manager supports.
 PBPeer getThisPeer()
          Returns a PBPeer that represents this entity.
 PBPeerGroup getWorldGroup()
          Returns the base group in which top level entities can be found.
 void init()
          Initialize the net manager.
 void removeApplication(PBApplication app)
          Remove an application
 void shutdown()
          Shutdown the net manager.
 

Method Detail

init

public void init()
Initialize the net manager.

shutdown

public void shutdown()
Shutdown the net manager.

getNetwork

public PBNet getNetwork()
Returns a PBNetwork describing the type of network that this manager supports.
Returns:
the network

getThisPeer

public PBPeer getThisPeer()
Returns a PBPeer that represents this entity.
Returns:
the peer

createApplication

public PBApplication createApplication(AppDescriptor app,
                                       Authority[] authorities)
Returns a PBApplication object
Parameters:
descriptor - a descriptor submitted by the application to describe itself
Returns:
the application implementation object for this network

removeApplication

public void removeApplication(PBApplication app)
Remove an application

getWorldGroup

public PBPeerGroup getWorldGroup()
Returns the base group in which top level entities can be found.
Returns:
the 'world' group

getEntityManager

public PBEntityManager getEntityManager()
Return an entitymanager that stores known peers from the peer network.
Returns:
peer entity manager


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