|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.peergroup.WorldPeerGroupFactory
public final class WorldPeerGroupFactory
A factory for instantiating the World Peer Group. Every peer starts by
instantiating the World Peer Group and then other Peer Groups are
instantiated as needed. Most applications do not need to use
WorldPeerGroupFactory
but should instead prefer using
NetPeerGroupFactory
whenever possible.
PeerGroup
,
NetPeerGroupFactory
Constructor Summary | |
---|---|
WorldPeerGroupFactory()
Provided for backwards compatibility, this constructor instantiates the World Peer Group using the PlatformConfig file found in the directory specified by the JXTA_HOME system property or the ".jxta/ "
directory if JXTA_HOME is not defined. |
|
WorldPeerGroupFactory(Class worldPeerGroupClass,
ConfigParams config,
URI storeHome)
Constructs the World Peer Group using the specified configuration and using the specified storeHome location for persistence. |
|
WorldPeerGroupFactory(ConfigParams config,
URI storeHome)
Constructs the World Peer Group using the specified configuration and using the specified storeHome location for persistence. |
Method Summary | |
---|---|
PeerGroup |
getInterface()
Returns a strong (reference counted) interface object for the World Peer Group. |
PeerGroup |
getWeakInterface()
Returns a weak (non-reference counted) interface object for the World Peer Group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorldPeerGroupFactory() throws PeerGroupException
JXTA_HOME
system property or the ".jxta/
"
directory if JXTA_HOME
is not defined.
Though not deprecated this method should be considered as sample
code only and the other constructors should be used whenever possible.
PeerGroupException
- Thrown for problems construction the World
Peer Group.public WorldPeerGroupFactory(ConfigParams config, URI storeHome) throws PeerGroupException
config
- The configuration to use for the World Peer Group.storeHome
- The optional location that the World Peer Group and its'
services should use for storing persistent and transient information.
May be null if the World Peer Group is not provided a
persistent store (though this not currently supported).
PeerGroupException
- Thrown for problems constructing the World
Peer Group.public WorldPeerGroupFactory(Class worldPeerGroupClass, ConfigParams config, URI storeHome) throws PeerGroupException
worldPeerGroupClass
- The class which will be instantiated for the
World Peer Group instance.config
- The configuration to use for the World Peer Group.storeHome
- The optional location that the World Peer Group and its'
services should use for storing persistent and transient information.
May be null if the World Peer Group is not provided a
persistent store (though this not currently supported).
PeerGroupException
- Thrown for problems constructing the World
Peer Group.Method Detail |
---|
public PeerGroup getInterface()
PeerGroup.unref()
public PeerGroup getWeakInterface()
PeerGroup.getWeakInterface()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |