Class SharedDiscoveryManagement

java.lang.Object
com.j_spaces.core.jini.SharedDiscoveryManagement

public final class SharedDiscoveryManagement extends Object
A helper allowing to share and return cached LDM and SDM.

In order to get an LDM, the getLookupDiscoveryManager(String[], net.jini.core.discovery.LookupLocator[], net.jini.discovery.DiscoveryListener) should be called and be used as normal. Terminate will reomve it from the cache if needed.

In order to get an SDM, the getBackwardsServiceDiscoveryManager(String[], net.jini.core.discovery.LookupLocator[], net.jini.discovery.DiscoveryListener) should be used (internally, it will also use a shared LDM). NOTE: If a lookup cache is created using the SDM, make sure to close it explicitly since terminating the SDM will not necesseraly actually terminate it, leaving the lookup cache open.

Author:
kimchy