public static class SharedDiscoveryManagement.SharedServiceDiscoveryManager extends ServiceDiscoveryManager
Constructor and Description |
---|
SharedServiceDiscoveryManager(SharedDiscoveryManagement.SharedDiscoEntry entry,
LookupDiscoveryManager discoveryMgr,
LeaseRenewalManager leaseMgr,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
int |
getRefCounter() |
void |
terminate()
The
terminate method 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 the ServiceDiscoveryManager . |
createLookupCache, getDefaultNotificationsLeaseRenewalRate, getDefaultRemoveServiceIfOrphanDelay, getDiscoveryManager, lookup, lookup, lookup, lookup, serviceDetails
public SharedServiceDiscoveryManager(SharedDiscoveryManagement.SharedDiscoEntry entry, LookupDiscoveryManager discoveryMgr, LeaseRenewalManager leaseMgr, Configuration config) throws IOException, ConfigurationException
IOException
ConfigurationException
public int getRefCounter()
public void terminate()
ServiceDiscoveryManager
terminate
method 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 the ServiceDiscoveryManager
. For each
instance of LookupCache
created and managed by the
ServiceDiscoveryManager
, the terminate
method will do the
following:
DiscoveryEvent
objects or, if the discovery manager employed by the
ServiceDiscoveryManager
was created by the ServiceDiscoveryManager
itself, terminate all discovery processing being performed by that manager object on behalf
of the entity.
IllegalStateException
.terminate
in class ServiceDiscoveryManager
LookupCache
,
DiscoveryEvent
Copyright © GigaSpaces.