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
getInterface
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
Advertisement getImplAdvertisement()
- Returns the advertisement for this service.
- Returns:
- Advertisement the advertisement. This is always a
ModuleImplAdvertisement
.