Rio Project 4.2 API Documentation
org.rioproject.resources.client
Class DiscoveryManagementPool.SharedDiscoveryManager
java.lang.Object
net.jini.discovery.LookupDiscoveryManager
org.rioproject.resources.client.DiscoveryManagementPool.SharedDiscoveryManager
- All Implemented Interfaces:
- DiscoveryGroupManagement, DiscoveryLocatorManagement, DiscoveryManagement
- Enclosing class:
- DiscoveryManagementPool
public static class DiscoveryManagementPool.SharedDiscoveryManager
- extends LookupDiscoveryManager
The SharedDiscoveryManager extends LookupDiscoveryManager and maintains a
reference counter for how many clients are sharing the instance. The reference
counter is used to determine if the LookupDiscoveryManager should be
terminated. The reference counter is incremented each time this instance is
shared, and decremented each time the terminate method is called. If the
reference counter goes to zero upon termination the LookupDiscoveryManager
will be terminated
| Methods inherited from class net.jini.discovery.LookupDiscoveryManager |
addDiscoveryListener, addGroups, addLocators, discard, getFrom, getGroups, getLocators, getRegistrars, removeDiscoveryListener, removeGroups, removeLocators, setGroups, setLocators |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveryManagementPool.SharedDiscoveryManager
public DiscoveryManagementPool.SharedDiscoveryManager(DiscoveryManagementPool.DiscoveryControl discoControl,
String[] groups,
LookupLocator[] locators,
DiscoveryListener listener)
throws IOException
- Throws:
IOException
DiscoveryManagementPool.SharedDiscoveryManager
public DiscoveryManagementPool.SharedDiscoveryManager(DiscoveryManagementPool.DiscoveryControl discoControl,
String[] groups,
LookupLocator[] locators,
DiscoveryListener listener,
Configuration config)
throws IOException,
ConfigurationException
- Throws:
IOException
ConfigurationException
getSharedName
public String getSharedName()
terminate
public void terminate()
- Override parent's terminate method. Only call
LookupDiscoveryManager.terminate() if there are no clients or users.
- Specified by:
terminate in interface DiscoveryManagement- Overrides:
terminate in class LookupDiscoveryManager
Copyright © 2006-2011 Rio Project. All Rights Reserved.