base.jdbs.network.util
Class JxtaUtil

java.lang.Object
  extended by base.jdbs.network.util.JxtaUtil

public class JxtaUtil
extends java.lang.Object


Constructor Summary
JxtaUtil()
           
 
Method Summary
static net.jxta.protocol.PeerGroupAdvertisement[] groupsInLocalCache(net.jxta.discovery.DiscoveryService discoveryService)
          This method must be used to retrieve each PeerGroupAdvertisement stored in the local peer's cache.
static net.jxta.protocol.PeerAdvertisement[] peersInLocalCache(net.jxta.discovery.DiscoveryService discoveryService)
          This method must be used to retrieve each PeerAdvertisement stored in the local peer's cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxtaUtil

public JxtaUtil()
Method Detail

groupsInLocalCache

public static net.jxta.protocol.PeerGroupAdvertisement[] groupsInLocalCache(net.jxta.discovery.DiscoveryService discoveryService)
This method must be used to retrieve each PeerGroupAdvertisement stored in the local peer's cache.

Parameters:
discoveryService - The discovery service used to check the Peer Group Advertisements stored in the local cache.
Returns:
A set of PeerGroupAdvertisement found in the local peer's cache.

peersInLocalCache

public static net.jxta.protocol.PeerAdvertisement[] peersInLocalCache(net.jxta.discovery.DiscoveryService discoveryService)
This method must be used to retrieve each PeerAdvertisement stored in the local peer's cache.

Parameters:
discoveryService - The discovery service used to check the Peer Advertisements stored in the local cache.
Returns:
A set of PeerAdvertisement found in the local peer's cache.


Copyright © 2006 SF.net. All Rights Reserved.