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

Quick Search    Search Deep

net.jxta.service
Interface Service  view Service download Service.java

All Superinterfaces:
net.jxta.platform.Module

public interface Service
extends net.jxta.platform.Module

This interface implements the peer group service interface. Peer groups are formed as a collection of peers that have agreed upon a common set of services. The JXTA platform provides a predefined set of services to build peer groups

Every service is defined by a net.jxta.protocol.ModuleImplAdvertisement. The Service advertisement provides the necessary information to uniquely identify the service and to contact its associated service(s).

When a new peer is joining a peer group an instance of all the services associated with the new peer group is created on this peer dynamically. Not all services need to be resident on a peer. A peer can dynamically load a new service from the peer it contacted to join the new peer group (via the PeerGroupAdvertisement of this group).


Field Summary
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK
 
Method Summary
 net.jxta.document.Advertisement getImplAdvertisement()
          Returns the advertisment for this service.
 Service getInterface()
          Service objects are not manipulated directly to protect usage of the service.
 
Methods inherited from interface net.jxta.platform.Module
init, startApp, stopApp
 

Method Detail

getInterface

public Service getInterface()
Service objects are not manipulated directly to protect usage of the service. A Service interface is returned to access the service methods.


getImplAdvertisement

public net.jxta.document.Advertisement getImplAdvertisement()
Returns the advertisment for this service.