|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PeerNetworkBrowser enables an application to locate other peers, groups, and perform group actions (create, delete, join, leave).
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 |
public java.util.Vector findApps(int timeout)
timeout
- Description of Parameterpublic FindMarker findAppsAsync()
public java.util.Vector findPeers(int timeout)
timeout
- Description of Parameterpublic FindMarker findPeersAsync()
public java.util.Vector findGroups(int timeout)
timeout
- Description of Parameterpublic FindMarker findGroupsAsync()
public void joinGroup(PeerGroupToken group)
group
- Description of Parameterpublic void leaveGroup(PeerGroupToken group)
group
- Description of Parameterpublic void createGroup(PeerGroupToken group)
group
- Description of Parameterpublic void destroyGroup(PeerGroupToken group)
group
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |