Project JXTA

net.jxta.service
Interface Service

All Superinterfaces:
Module
All Known Subinterfaces:
AccessService, DiscoveryService, EndpointService, MembershipService, PeerGroup, PeerInfoService, PipeService, RendezVousService, ResolverService
All Known Implementing Classes:
LightWeightPeerGroup

public interface Service
extends 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 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).

See Also:
PeerGroup, Application, PeerGroupAdvertisement, ModuleImplAdvertisement

Field Summary
 
Fields inherited from interface net.jxta.platform.Module
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK
 
Method Summary
 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.

Returns:
Service public interface of the service

getImplAdvertisement

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

Returns:
Advertisement the advertisement.

JXTA J2SE