|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.peergroup.PeerGroupFactory
Factory Classes to create a new Peer Platform and New PeerGroups. This class is used by Jxta applications to create new groups
The Jxta platform defines three levels of peer groups:
The Platform PeerGroup: this is the World Group every peer when they boot becomes part of this group. This group provides the minimum core services to seed a peer.
The Net PeerGroup: this is the default group a peer belongs to after booting. The Net Peer group configuration is done by the administrator in charge of the network domain the peer is booting in. The NetPeerGroup is discovered via the NetPeerGroup protocol. Multiple NetPeerGroup can be configured by an administrator.
User's defined PeerGroup: User can create new peer groups with they own set of customized services.
The Platform group is created via the newPlatform constructor. The Net PeerGroups and user Peer Groups are created via the newPeerGroup.
PeerGroup
Constructor Summary | |
PeerGroupFactory()
|
Method Summary | |
static PeerGroup |
newPeerGroup()
Static Method to create a new peer group instance. |
static PeerGroup |
newPlatform()
Static Method to create a new peer Plaform |
static void |
setPlatformClass(java.lang.Class c)
Static Method to initialize the peer platform class |
static void |
setStdPeerGroupClass(java.lang.Class c)
Static Method to initialize the std peer class |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PeerGroupFactory()
Method Detail |
public static void setStdPeerGroupClass(java.lang.Class c)
Class
- name to be initialized in the factorypublic static void setPlatformClass(java.lang.Class c)
Class
- name of the class implementing platformpublic static PeerGroup newPeerGroup()
public static PeerGroup newPlatform()
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |