Package com.j_spaces.core.jini
Class SharedDiscoveryManagement.SharedServiceDiscoveryManager
java.lang.Object
net.jini.lookup.ServiceDiscoveryManager
com.j_spaces.core.jini.SharedDiscoveryManagement.SharedServiceDiscoveryManager
- Direct Known Subclasses:
SharedDiscoveryManagement.BackwardsSharedServiceDiscoveryManager
- Enclosing class:
- SharedDiscoveryManagement
public static class SharedDiscoveryManagement.SharedServiceDiscoveryManager
extends ServiceDiscoveryManager
-
Constructor Summary
ConstructorsConstructorDescriptionSharedServiceDiscoveryManager(SharedDiscoveryManagement.SharedDiscoEntry entry, LookupDiscoveryManager discoveryMgr, LeaseRenewalManager leaseMgr, Configuration config) -
Method Summary
Modifier and TypeMethodDescriptionintvoidTheterminatemethod performs cleanup duties related to the termination of the event mechanism for lookup service discovery, the event mechanism for service discovery, and the cache management duties of theServiceDiscoveryManager.Methods inherited from class net.jini.lookup.ServiceDiscoveryManager
createLookupCache, getDefaultNotificationsLeaseRenewalRate, getDefaultRemoveServiceIfOrphanDelay, getDiscoveryManager, lookup, lookup, lookup, lookup, serviceDetails
-
Constructor Details
-
Method Details
-
getRefCounter
public int getRefCounter() -
terminate
public void terminate()Description copied from class:ServiceDiscoveryManagerTheterminatemethod performs cleanup duties related to the termination of the event mechanism for lookup service discovery, the event mechanism for service discovery, and the cache management duties of theServiceDiscoveryManager.For each instance of
LookupCachecreated and managed by theServiceDiscoveryManager, theterminatemethod will do the following:- Either remove all listener objects registered for receipt of
DiscoveryEventobjects or, if the discovery manager employed by theServiceDiscoveryManagerwas created by theServiceDiscoveryManageritself, terminate all discovery processing being performed by that manager object on behalf of the entity. - Cancel all event leases granted by each lookup service in the managed
set of lookup services.
- Un-export all remote listener objects registered with each
lookup service in the managed set.
- Terminate all threads involved in the process of retrieving and storing references to discovered services of interest.
IllegalStateException.- Overrides:
terminatein classServiceDiscoveryManager- See Also:
- Either remove all listener objects registered for receipt of
-