com.resilientedge.jockey.peerbridge
Class SimpSockDirectory

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

public class SimpSockDirectory
extends java.lang.Object
implements PBDirectory, SimpSockRequestListener

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

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
SimpSockDirectory(SimpSockPeerGroup group, SimpSockConnector connector)
          Constructor.
 
Method Summary
 void createGroup(PBPeerGroup group)
          Create a new peer group at the global (world-accessible) net group level.
 Response doCall(Request req)
          Handle a request
 void doVoidCall(Request req)
          Handle a request which won't receive a response.
 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.
 java.lang.String getRequesteeName()
          Return the name by which this listener can be identified.
 Response remoteFindApps(int timeout)
          Locate apps on the network, until a time limit is reached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpSockDirectory

public SimpSockDirectory(SimpSockPeerGroup group,
                         SimpSockConnector connector)
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

remoteFindApps

public Response remoteFindApps(int timeout)
Locate apps on the network, until a time limit is reached.
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

getRequesteeName

public java.lang.String getRequesteeName()
Return the name by which this listener can be identified.
Specified by:
getRequesteeName in interface SimpSockRequestListener
Returns:
listener name

doCall

public Response doCall(Request req)
Handle a request
Specified by:
doCall in interface SimpSockRequestListener
Parameters:
req - the request to handle
Returns:
a response

doVoidCall

public void doVoidCall(Request req)
Handle a request which won't receive a response.
Specified by:
doVoidCall in interface SimpSockRequestListener
Parameters:
req - the request to handle


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