|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
DiscoveryService service: The service to discover new peers and peer groups
ResolverService service: The service to resolve query requests
(PipeService location and search for advertisement) within a peer group. The
services of a peer groups are defined in the peer group
advertisement
defines each of the group services (membership,
discovery, resolver, etc).
PipeService service: The service to create input and output pipes, and send and receive messages.
MembershipService service: The service to apply and join a peer group
The Platform PeerGroup is built using the core services. Every other peer group created can used the core services, extend them or add new ones to form new kinds of peer groups. User can create new peer groups with they own set of customized services.
Every service is defined by a ServiceAdvertisement. 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).
Each service is a Application, so the Service interface extends the Application interface.
PeerGroup
,
Application
,
Membership
,
Discovery
,
Resolver
,
Pipe
,
PeerGroupAdvertisement
,
ServiceAdvertisement
Method Summary | |
Advertisement |
getAdvertisement()
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.Application |
init,
startApp,
stopApp |
Method Detail |
public Service getInterface()
public Advertisement getAdvertisement()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |