Project JXTA

net.jxta.peergroup
Class PeerGroupFactory

java.lang.Object
  |
  +--net.jxta.peergroup.PeerGroupFactory

public class PeerGroupFactory
extends java.lang.Object

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 group is created via the newPlatform constructor. The Net PeerGroups and user Peer Groups are created via the newPeerGroup.

Since:
JXTA 1.0
See Also:
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

PeerGroupFactory

public PeerGroupFactory()
Method Detail

setStdPeerGroupClass

public static void setStdPeerGroupClass(java.lang.Class c)
Static Method to initialize the std peer class
Parameters:
Class - name to be initialized in the factory
Since:
JXTA 1.0

setPlatformClass

public static void setPlatformClass(java.lang.Class c)
Static Method to initialize the peer platform class
Parameters:
Class - name of the class implementing platform
Since:
JXTA 1.0

newPeerGroup

public static PeerGroup newPeerGroup()
Static Method to create a new peer group instance. After beeing created the init method needs to be called
Returns:
PeerGroup instance of a new PeerGroup
Since:
JXTA 1.0

newPlatform

public static PeerGroup newPlatform()
Static Method to create a new peer Plaform
Returns:
PeerGroup instance of a new Platform
Since:
JXTA 1.0

Project JXTA