org.resilientedge.jockey.peerbridge
Class PBNetManagerFactory

java.lang.Object
  |
  +--org.resilientedge.jockey.peerbridge.PBNetManagerFactory

public class PBNetManagerFactory
extends java.lang.Object

Handles basic peer network management; addition, removal, and retrieval of peer networks.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Method Summary
 void addManagedNet(PBNet net, PBNetManager manager)
          Add the implementation for the designated peer network to this manager.
static PBNetManagerFactory getInstance()
          Returns the singleton instance
 PBNet[] getManagedNets()
          Return the set of networks for which this factory has managers.
 PBNetManager getNetManager(PBNet net)
          Retrieve a manager to handle a particular network type.
 void removeManagedNet(PBNet net)
          Remove responsibility for a managed network from this manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PBNetManagerFactory getInstance()
Returns the singleton instance
Returns:
The Instance value

getNetManager

public PBNetManager getNetManager(PBNet net)
Retrieve a manager to handle a particular network type.
Parameters:
net - the peer network of interest
Returns:
the manager which manages the network of interest

addManagedNet

public void addManagedNet(PBNet net,
                          PBNetManager manager)
Add the implementation for the designated peer network to this manager.
Parameters:
net - a PBNet for which the factory is now responsible
manager - the manager which manages the new network

getManagedNets

public PBNet[] getManagedNets()
Return the set of networks for which this factory has managers.
Returns:
vector of PBNets

removeManagedNet

public void removeManagedNet(PBNet net)
Remove responsibility for a managed network from this manager.
Parameters:
net - a PBNet for which the manager is no longer responsible


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