|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface implements the peer group interface. Peer groups are formed as a collection of peers that have agreed upon a common set of services. Each peer group is assigned a unique peer group id and a peer group advertisement. The peer group advertisement defines each of the group services (membership, discovery, resolver, etc).
In order to participate in a group, a peer needs to join the group using the peer group membership service.
The Jxta platform defines three kinds of peer groups:
The Platform PeerGroup : this is the JXTA World PeerGroup, that every peers when they initialy bootstrap themselves belongs to. This group provides the minimum core services to seed a peer with a NetPeerGroup. Every peer running an isntance of JXTA is part of the Platform peer group.
Net PeerGroup: this is the default group a peer belongs to after booting is completed. The NetPeergroup configuration is typically done by the administrator in charge of the network domain the peer is booting in. The NetPeerGroup is discovered via the NetPeerGroup protocol. Multiple NetPeerGroups can be configured by an administrator either staically or dynamically. NetPeerGroup defines the initial scope of the peer, how far the peer can discover new peers or peer groups, propagate resolver queries and find rendezvous peers.
User PeerGroups: Users can create new peer groups with they own set of customized services. User PeerGroups are defined by either cloning the NetPeerGroup services or extending the services or adding new ones. Each User Peer Group can define its own scope of discovery, query resolver and rendezvous peers.
PeerGroupID
,
Service
,
PeerGroupFactory
,
PeerGroupAdvertisement
Method Summary | |
PeerGroupAdvertisement |
getAdvertisement()
Ask a group for its group advertisement |
Application |
getApp()
Return the default application setup for this peergroup The application can be started via its init() method. |
boolean |
getDebug()
Check debug status |
Discovery |
getDiscovery()
|
PeerGroupID |
getID()
Ask a group its group id. |
Membership |
getMembership()
|
PeerID |
getPeerID()
Ask a group member for its peer Id. |
PeerInfo |
getPeerInfo()
|
java.lang.String |
getPeerName()
Ask a group member for its peer Name. |
Pipe |
getPipe()
|
RendezVous |
getRendezVous()
|
Resolver |
getResolver()
|
boolean |
isRendezvous()
Returns the whether the group member is a Rendezvous peer for the group |
Service |
lookupService(java.lang.String name)
Lookup for a service by name. |
Methods inherited from interface net.jxta.platform.Application |
init,
startApp,
stopApp |
Method Detail |
public Resolver getResolver()
public Discovery getDiscovery()
public PeerInfo getPeerInfo()
public Membership getMembership()
public Pipe getPipe()
public RendezVous getRendezVous()
public boolean getDebug()
public boolean isRendezvous()
public PeerGroupID getID()
public PeerID getPeerID()
public java.lang.String getPeerName()
public PeerGroupAdvertisement getAdvertisement()
public Service lookupService(java.lang.String name) throws ServiceNotFoundException
name
- the service namepublic Application getApp()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |