com.resilientedge.jockey.peerbridge
Class PeerNetworkBrowserBridge

java.lang.Object
  |
  +--com.resilientedge.jockey.peerbridge.PeerNetworkBrowserBridge

public class PeerNetworkBrowserBridge
extends java.lang.Object

The PeerNetworkBrowserBridge 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
PeerNetworkBrowserBridge()
           
 
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.
static PeerNetworkBrowserBridge getInstance()
          Returns the singleton instance
 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

PeerNetworkBrowserBridge

public PeerNetworkBrowserBridge()
Method Detail

getInstance

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

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.