Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

net.jxta.discovery: Javadoc index of package net.jxta.discovery.


Package Samples:

net.jxta.discovery

Classes:

DiscoveryService: The JXTA DiscoveryService provides an asynchronous mechanism for discovering Peer Advertisements, Group Advertisements, and other general JXTA Advertisements (pipe, service, etc.). The scope of discovery can be controlled by specifying name and attribute pair, and a threshold. The threshold is an upper limit the requesting peer specifies for responding peers not to exceed. Each JXTA Peer Group has an instance of a DiscoveryService. The scope of discovery is limited to the group. For example : A peer in the soccer group invokes the soccer group's DiscoveryService to discover pipe advertisements ...
DiscoveryListener: The listener interface for receiving DiscoveryEvent s from the Discovery Service. The following 2 examples illustrate how to implement a DiscoverListener : Example 1: DiscoveryListener myListener = new DiscoveryListener() { public void discoveryEvent(DiscoveryEvent e) { DiscoveryResponseMsg msg = e.getResponse(); if (myQueryID == e.getQueryID()) { int advCount = msg.getResponseCount(); } } discovery.addDiscoveryListener(myListener); int myQueryID = discovery.getRemoteAdvertisements(address, discovery.GROUP, attr, val,threshold); Example 2: public class JxtaAppDemo implements Runnable, DiscoveryListener ...
DiscoveryEvent: Container for DiscoveryService events. The source of the event is the Discovery Service which generated the event.

Home | Contact Us | Privacy Policy | Terms of Service