net.jxta.instantp2p
Class GroupManager
java.lang.Object
|
+--net.jxta.instantp2p.GroupManager
- public class GroupManager
- extends java.lang.Object
A class that manages the group information stored in different CMS
storage areas. Each instance of CMS manages the information for
one peer group. This class keeps track of the CMS instance (by
storing them in a hash table) and dispenses the currect instance to use
Field Summary |
static java.lang.String |
IP2P_DIRNAME
The directory name to use |
Constructor Summary |
GroupManager()
Constructor - should not be called. |
Method Summary |
net.jxta.share.CMS |
getCMS(net.jxta.peergroup.PeerGroup group)
Returns the CMS instance to use for the given peer group. |
static GroupManager |
getInstance()
Returns an instance of this class. |
Search |
getSearch(net.jxta.peergroup.PeerGroup group)
Returns the Search instance to use for the given peer group. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IP2P_DIRNAME
public static final java.lang.String IP2P_DIRNAME
- The directory name to use
GroupManager
public GroupManager()
- Constructor - should not be called. Use getInstance instead
getCMS
public net.jxta.share.CMS getCMS(net.jxta.peergroup.PeerGroup group)
- Returns the CMS instance to use for the given peer group.
If a CMS store for this group was not yet created, it is
created and started.
- Parameters:
group
- the peer group for which to retrieve the CMS intance- Returns:
- CMS instance for the given peer group
getSearch
public Search getSearch(net.jxta.peergroup.PeerGroup group)
- Returns the Search instance to use for the given peer group.
If a Search instance was not yet created, it is done.
- Parameters:
group
- the peer group for which to retrieve the Search intance- Returns:
- Search instance for the given peer group
getInstance
public static GroupManager getInstance()
- Returns an instance of this class.