|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.peergroup.GenericPeerGroup
net.jxta.impl.peergroup.StdPeerGroup
net.jxta.impl.peergroup.Platform
public class Platform
Provides the implementation for the World PeerGroup. The World peer group differs from other peer groups in the following ways :
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.jxta.impl.peergroup.GenericPeerGroup |
---|
GenericPeerGroup.PeerGroupThreadFactory |
Nested classes/interfaces inherited from interface net.jxta.peergroup.PeerGroup |
---|
PeerGroup.GlobalRegistry |
Field Summary |
---|
Fields inherited from class net.jxta.impl.peergroup.StdPeerGroup |
---|
MODULE_IMPL_STD_PROVIDER, MODULE_IMPL_STD_URI, STD_COMPAT, STD_COMPAT_BINDING, STD_COMPAT_BINDING_VALUE, STD_COMPAT_FORMAT, STD_COMPAT_FORMAT_VALUE |
Fields inherited from class net.jxta.impl.peergroup.GenericPeerGroup |
---|
configAdvertisement, implAdvertisement, initComplete, jxtaHome, parentGroup |
Fields inherited from interface net.jxta.platform.Module |
---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_DISABLED, START_OK |
Constructor Summary | |
---|---|
Platform()
This constructor was originally the standard constructor and must be retained in case the World PeerGroup is accidentally instantiated via the module loading infrastructure. |
|
Platform(ConfigParams config,
URI storeHome)
Default constructor |
Method Summary | |
---|---|
protected void |
checkServices()
check that all required core services are registered |
ModuleImplAdvertisement |
getAllPurposePeerGroupImplAdvertisement()
Returns a ModuleImplAdvertisement suitable for the Network Peer Group. |
static ModuleImplAdvertisement |
getDefaultModuleImplAdvertisement()
Create and populate the default module impl Advertisement for this class. |
protected void |
initFirst(PeerGroup nullParent,
ID assignedID,
Advertisement impl)
Performs all initialization steps that need to be performed before any subclass initialization is performed. |
protected void |
initLast()
Perform all initialization steps that need to be performed after any subclass initialization is performed. |
Methods inherited from class net.jxta.impl.peergroup.StdPeerGroup |
---|
compatible, getApplications, getCacheManager, isCompatible, loadAllModules, mkImplAdvBuiltin, startApp, stopApp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Platform() throws PeerGroupException
PeerGroupException
- if an initialization error occurspublic Platform(ConfigParams config, URI storeHome)
config
- The configuration.storeHome
- Persistent store home.Method Detail |
---|
public static ModuleImplAdvertisement getDefaultModuleImplAdvertisement()
protected void initFirst(PeerGroup nullParent, ID assignedID, Advertisement impl) throws PeerGroupException
super.initFirst()
before doing
any of their own work.
This method loads and initializes all of the peer group modules
described in the provided implementation advertisement. Then, all modules
are placed in a list and the list is processed iteratively. During each
iteration, the Module.startApp(String[])
method of each module
is invoked once. Iterations continue until no progress is being made or
the list is empty.
The status returned by the Module.startApp(String[])
method
of each module is considered as follows:
Module.START_OK
: The module is removed from the list of
modules to be started and its Module.startApp(String[])
method will not be invoked again.
Module.START_AGAIN_PROGRESS
: The module remains in the
list of modules to be started and its Module.startApp(String[])
method will be invoked during the next iteration, if there is one. Module.START_AGAIN_STALLED
: The module remains in the list
of modules to be started and its Module.startApp(String[])
method will be invoked during the next iteration if there is one. Module.startApp(String[])
method will not be invoked again.Module.START_AGAIN_STALLED
: a PeerGroupException
is thrown.Module.START_OK
: a PeerGroupException
is thrown. The number of complete iterations before that happens is
computed as 1 + the square of the number of modules currently in the
list.
initFirst
in class StdPeerGroup
nullParent
- The group that serves as a parent to this group.assignedID
- The unique ID assigned to this module. For
group this is the group ID or null
if a group ID
has not yet been assigned. If null is passed, GenericPeerGroup
will generate a new group ID.impl
- The ModuleImplAdvertisement which defines this
group's implementation.
PeerGroupException
- if a group initialization error occursprotected void initLast() throws PeerGroupException
initLast
in class StdPeerGroup
PeerGroupException
- if a group initialization error occurspublic ModuleImplAdvertisement getAllPurposePeerGroupImplAdvertisement()
getAllPurposePeerGroupImplAdvertisement
in interface PeerGroup
getAllPurposePeerGroupImplAdvertisement
in class StdPeerGroup
protected void checkServices() throws ServiceNotFoundException
checkServices
in class GenericPeerGroup
ServiceNotFoundException
- If a required service was not found.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |