|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.jockey.peer.PeerNetworkBrowserImpl
The PeerNetworkBrowserImpl enables an application to locate other peers, groups, and perform group actions (create, delete, join, leave).
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 |
public PeerNetworkBrowserImpl(PeerGroupToken group)
PeerNetworkBrowserImpl
instance.group
- group for which this is the browserMethod Detail |
public java.util.Vector findApps(int timeout)
findApps
in interface PeerNetworkBrowser
timeout
- Description of Parameterpublic FindMarker findAppsAsync()
findAppsAsync
in interface PeerNetworkBrowser
public java.util.Vector findPeers(int timeout)
findPeers
in interface PeerNetworkBrowser
timeout
- Description of Parameterpublic FindMarker findPeersAsync()
findPeersAsync
in interface PeerNetworkBrowser
public java.util.Vector findGroups(int timeout)
findGroups
in interface PeerNetworkBrowser
timeout
- Description of Parameterpublic FindMarker findGroupsAsync()
findGroupsAsync
in interface PeerNetworkBrowser
public void joinGroup(PeerGroupToken group)
joinGroup
in interface PeerNetworkBrowser
group
- Description of Parameterpublic void leaveGroup(PeerGroupToken group)
leaveGroup
in interface PeerNetworkBrowser
group
- Description of Parameterpublic void createGroup(PeerGroupToken group)
createGroup
in interface PeerNetworkBrowser
group
- Description of Parameterpublic void destroyGroup(PeerGroupToken group)
destroyGroup
in interface PeerNetworkBrowser
group
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |