org.resilientedge.jockey.peer
Interface PeerNetworkBrowser

All Known Implementing Classes:
PeerNetworkBrowserImpl

public interface PeerNetworkBrowser

The PeerNetworkBrowser 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

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
 

Method Detail

findApps

public java.util.Vector findApps(int timeout)
Returns a list of apps found before the default timeout is exceeded.
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.
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.
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.
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.
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.
Returns:
Description of the Returned Value

joinGroup

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

leaveGroup

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

createGroup

public void createGroup(PeerGroupToken group)
Allows the application to create a group
Parameters:
group - Description of Parameter

destroyGroup

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


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