com.resilientedge.jockey.peerbridge
Class LoopbackDirectory

java.lang.Object
  |
  +--com.resilientedge.jockey.peerbridge.LoopbackDirectory
All Implemented Interfaces:
PBDirectory

public class LoopbackDirectory
extends java.lang.Object
implements PBDirectory

A directory that provides browse capability for the loopback peer network.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
LoopbackDirectory(LoopbackPeerGroup group)
          Constructor.
 
Method Summary
 void createGroup(PBPeerGroup group)
          Create a new peer group at the global (world-accessible) net group level.
protected  void deregisterApp(LoopbackApplication app)
          Remove a previously registered app from the directory.
protected  void deregisterPeer(LoopbackPeer peer)
          Remove a previously registered peer from the directory.
 java.util.Vector findApps(int timeout)
          Locate apps on the network, until a time limit is reached.
 PBFindMarker findAppsAsync(int timeout)
          Locate apps on the network, asynchronously, until a time limit is reached.
 java.util.Vector findGroups(int timeout)
          Locate groups on the network, until a time limit is reached.
 PBFindMarker findGroupsAsync(int timeout)
          Locate groups on the network, asynchronously, until a time limit is reached.
 java.util.Vector findPeers(int timeout)
          Locate peers on the network, until a time limit is reached.
 PBFindMarker findPeersAsync(int timeout)
          Locate peers on the network, asynchronously, until a time limit is reached.
protected  void registerApp(LoopbackApplication app)
          Save a new app to the directory.
protected  void registerPeer(LoopbackPeer peer)
          Save a new peer to the directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopbackDirectory

public LoopbackDirectory(LoopbackPeerGroup group)
Constructor.
Method Detail

findApps

public java.util.Vector findApps(int timeout)
Locate apps on the network, until a time limit is reached.
Specified by:
findApps in interface PBDirectory
Parameters:
timeout - number of seconds to look for apps
Returns:
Description of the Returned Value

findAppsAsync

public PBFindMarker findAppsAsync(int timeout)
Locate apps on the network, asynchronously, until a time limit is reached.
Specified by:
findAppsAsync in interface PBDirectory
Parameters:
timeout - number of seconds to look for apps
Returns:
marker representing the find attempt

findPeers

public java.util.Vector findPeers(int timeout)
Locate peers on the network, until a time limit is reached.
Specified by:
findPeers in interface PBDirectory
Parameters:
timeout - number of seconds to look for peers
Returns:
Description of the Returned Value

findPeersAsync

public PBFindMarker findPeersAsync(int timeout)
Locate peers on the network, asynchronously, until a time limit is reached.
Specified by:
findPeersAsync in interface PBDirectory
Parameters:
timeout - number of seconds to look for peers
Returns:
marker representing the find attempt

findGroups

public java.util.Vector findGroups(int timeout)
Locate groups on the network, until a time limit is reached.
Specified by:
findGroups in interface PBDirectory
Parameters:
timeout - number of seconds to look for groups
Returns:
Description of the Returned Value

findGroupsAsync

public PBFindMarker findGroupsAsync(int timeout)
Locate groups on the network, asynchronously, until a time limit is reached.
Specified by:
findGroupsAsync in interface PBDirectory
Parameters:
timeout - number of seconds to look for groups
Returns:
marker representing the find attempt

createGroup

public void createGroup(PBPeerGroup group)
Create a new peer group at the global (world-accessible) net group level.
Specified by:
createGroup in interface PBDirectory
Parameters:
group - Description of Parameter

registerApp

protected void registerApp(LoopbackApplication app)
Save a new app to the directory.
Parameters:
group - Description of Parameter

deregisterApp

protected void deregisterApp(LoopbackApplication app)
Remove a previously registered app from the directory.
Parameters:
group - Description of Parameter

registerPeer

protected void registerPeer(LoopbackPeer peer)
Save a new peer to the directory.
Parameters:
group - Description of Parameter

deregisterPeer

protected void deregisterPeer(LoopbackPeer peer)
Remove a previously registered peer from the directory.
Parameters:
group - Description of Parameter


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