com.resilientedge.jockey.peerbridge
Class SimpSockNetManager

java.lang.Object
  |
  +--com.resilientedge.jockey.peerbridge.SimpSockNetManager
All Implemented Interfaces:
PBNetManager

public class SimpSockNetManager
extends java.lang.Object
implements PBNetManager

Implements a PBNetManager that connects to a loopback peer network. This "peer network" consists of only this peer and all messages go back to this peer.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
SimpSockNetManager()
           
 
Method Summary
 PBApplication createApplication(AppDescriptor descriptor, Authority[] authorities)
          Returns a PBApplication object
 SimpSockConnector getConnector()
          Return the connector that allows this peer to communicate with others.
 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 a reference to the default group that contains all peer entities.
 void init()
          Initialize the net manager.
 void removeApplication(PBApplication app)
          Remove an application
 void shutdown()
          Shutdown the net manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpSockNetManager

public SimpSockNetManager()
Method Detail

init

public void init()
Initialize the net manager.
Specified by:
init in interface PBNetManager

shutdown

public void shutdown()
Shutdown the net manager.
Specified by:
shutdown in interface PBNetManager

getWorldGroup

public PBPeerGroup getWorldGroup()
Returns a reference to the default group that contains all peer entities.
Specified by:
getWorldGroup in interface PBNetManager
Returns:
the 'world' group

getEntityManager

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

getNetwork

public PBNet getNetwork()
Returns a PBNetwork describing the type of network that this manager supports.
Specified by:
getNetwork in interface PBNetManager
Returns:
the network

getThisPeer

public PBPeer getThisPeer()
Returns a PBPeer that represents this entity.
Specified by:
getThisPeer in interface PBNetManager
Returns:
the peer

createApplication

public PBApplication createApplication(AppDescriptor descriptor,
                                       Authority[] authorities)
Returns a PBApplication object
Specified by:
createApplication in interface PBNetManager
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
Specified by:
removeApplication in interface PBNetManager

getConnector

public SimpSockConnector getConnector()
Return the connector that allows this peer to communicate with others.
Returns:
the connector


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