com.resilientedge.jockey.peer
Class PeerNetworkBrowserImpl

java.lang.Object
  |
  +--com.resilientedge.jockey.peer.PeerNetworkBrowserImpl
All Implemented Interfaces:
PeerNetworkBrowser

public class PeerNetworkBrowserImpl
extends java.lang.Object
implements PeerNetworkBrowser

The PeerNetworkBrowserImpl enables an application to locate other peers, groups, and perform group actions (create, delete, join, leave).

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Constructor Summary
PeerNetworkBrowserImpl(PeerGroupToken group)
          Creates a new PeerNetworkBrowserImpl instance.
 
Method Summary
 void createGroup(PeerGroupToken group)
          Allows the application to create a group
 void destroyGroup(PeerGroupToken group)
          Allows the application to delete an existing group if credentials allow
 java.util.Vector findApps(int timeout)
          Returns a list of apps found before the default timeout is exceeded.
 FindMarker findAppsAsync()
          Performs an asynchronous search for apps, informing registered listeners when the search has completed.
 java.util.Vector findGroups(int timeout)
          Returns a list of groups found before the timeout is exceeded.
 FindMarker findGroupsAsync()
          Performs an asynchronous search for groups, informing registered listeners when the search has completed.
 java.util.Vector findPeers(int timeout)
          Returns a list of peers found before the default timeout is exceeded.
 FindMarker findPeersAsync()
          Performs an asynchronous search for peers, informing registered listeners when the search has completed.
 void joinGroup(PeerGroupToken group)
          Allows the application to join the group if the credentials match.
 void leaveGroup(PeerGroupToken group)
          Allows the application to leave a joined group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerNetworkBrowserImpl

public PeerNetworkBrowserImpl(PeerGroupToken group)
Creates a new PeerNetworkBrowserImpl instance.
Parameters:
group - group for which this is the browser
Method Detail

findApps

public java.util.Vector findApps(int timeout)
Returns a list of apps found before the default timeout is exceeded.
Specified by:
findApps in interface PeerNetworkBrowser
Parameters:
timeout - Description of Parameter
Returns:
Description of the Returned Value

findAppsAsync

public FindMarker findAppsAsync()
Performs an asynchronous search for apps, informing registered listeners when the search has completed.
Specified by:
findAppsAsync in interface PeerNetworkBrowser
Returns:
Description of the Returned Value

findPeers

public java.util.Vector findPeers(int timeout)
Returns a list of peers found before the default timeout is exceeded.
Specified by:
findPeers in interface PeerNetworkBrowser
Parameters:
timeout - Description of Parameter
Returns:
Description of the Returned Value

findPeersAsync

public FindMarker findPeersAsync()
Performs an asynchronous search for peers, informing registered listeners when the search has completed.
Specified by:
findPeersAsync in interface PeerNetworkBrowser
Returns:
Description of the Returned Value

findGroups

public java.util.Vector findGroups(int timeout)
Returns a list of groups found before the timeout is exceeded.
Specified by:
findGroups in interface PeerNetworkBrowser
Parameters:
timeout - Description of Parameter
Returns:
Description of the Returned Value

findGroupsAsync

public FindMarker findGroupsAsync()
Performs an asynchronous search for groups, informing registered listeners when the search has completed.
Specified by:
findGroupsAsync in interface PeerNetworkBrowser
Returns:
Description of the Returned Value

joinGroup

public void joinGroup(PeerGroupToken group)
Allows the application to join the group if the credentials match.
Specified by:
joinGroup in interface PeerNetworkBrowser
Parameters:
group - Description of Parameter

leaveGroup

public void leaveGroup(PeerGroupToken group)
Allows the application to leave a joined group
Specified by:
leaveGroup in interface PeerNetworkBrowser
Parameters:
group - Description of Parameter

createGroup

public void createGroup(PeerGroupToken group)
Allows the application to create a group
Specified by:
createGroup in interface PeerNetworkBrowser
Parameters:
group - Description of Parameter

destroyGroup

public void destroyGroup(PeerGroupToken group)
Allows the application to delete an existing group if credentials allow
Specified by:
destroyGroup in interface PeerNetworkBrowser
Parameters:
group - Description of Parameter


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