|
JXTA | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Configurator | Deprecated. This interface has been replaced with the NetworkConfigurator . |
PeerGroup | Peer groups are formed as a collection of peers that have agreed upon a common set of services. |
Class Summary | |
---|---|
LightWeightPeerGroup | LightWeightPeerGroup is a class intended to help building PeerGroup that can inherit one or more services from a parent PeerGroup. |
NetPeerGroupFactory | A factory for instantiating a Network Peer Group instances. |
PeerGroup.GlobalRegistry | Global registry of instantiated peer groups. |
PeerGroupFactory | Deprecated. This factory has been deprecated in favour of WorldPeerGroupFactory
and NetPeerGroupFactory . |
PeerGroupID | This class implements a PeerGroup ID. |
WorldPeerGroupFactory | A factory for instantiating the World Peer Group. |
Peer groups are formed as a collection of peers that have agreed upon a
common set of services. The PeerGroup
interface presents the
API of those services and encapsulates the group's identity and the local
peer's identity in that group.
PeerGroup
object,
that represents that group may be obtained from the parent group by using
one of the parent's newGroup
methods.
All peers start with instantiating one well known root group
(which has no parent) known as the World Peer Group. It is created
by calling PeerGroupFactory.newPlatform()
.
The World Peer Group has a limited set of functionality. Most
peers chose to instantiate early on another well known group known as the
Net Peer Group and to use it as the root of the other groups they
create.
An object representing the Net Peer Group may be obtained from
the PeerGroupFactory
by invoking the method
PeerGroupFactory.newNetPeerGroup()
. This method
invokes PeerGroupFactory.newPlatform()
automatically, so if an application wants to use the Net Peer Group
as its root group, invoking
PeerGroupFactory.newNetPeerGroup()
is all that is
required.
All other groups should be created or instantiated within the context of
already instantiated groups by using one of the
newGroup
methods.
It is possible to change the identity, name, and description of the
group that PeerGroupFactory.newNetPeerGroup()
instantiates by setting the following properties in the file
config.properties
(all three must be specified for the setting
to take effect):
NetPeerGroupID
NetPeerGroupName
NetPeerGroupDesc
PeerGroupFactory
static methods:
PeerGroupFactory.setNetPGID(net.jxta.peergroup.PeerGroupID)
PeerGroupFactory.setNetPGName(java.lang.String)
PeerGroupFactory.setNetPGDesc(java.lang.String)
newGroup
methods of the
resulting PeerGroup object. An example of creating multiple
infrastructure peer groups.
Dual Infrastructure Group Tutorial
PeerGroup
,
PeerGroupFactory
,
PeerGroupAdvertisement
,
PeerAdvertisement
,
ID
,
JXTA Protocols Specification : Peer Groups
|
JXSE | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |