public final class SharedDiscoveryManagement extends Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
SharedDiscoveryManagement.BackwardsSharedServiceDiscoveryManager
Deprecated.
|
static class |
SharedDiscoveryManagement.SharedDiscoEntry |
static class |
SharedDiscoveryManagement.SharedDiscoveryManager |
static class |
SharedDiscoveryManagement.SharedServiceDiscoveryManager |
static class |
SharedDiscoveryManagement.SharedServiceDiscoveryManagerResult |
Modifier and Type | Method and Description |
---|---|
static void |
forceTerminate() |
static SharedDiscoveryManagement.SharedServiceDiscoveryManager |
getBackwardsServiceDiscoveryManager(String[] groups,
LookupLocator[] locators,
DiscoveryListener listener) |
static LookupDiscoveryManager |
getLookupDiscoveryManager(String[] groups,
LookupLocator[] locators,
DiscoveryListener listener) |
static SharedDiscoveryManagement.SharedServiceDiscoveryManager |
getServiceDiscoveryManager(String[] groups,
LookupLocator[] locators,
DiscoveryListener listener) |
static SharedDiscoveryManagement.SharedServiceDiscoveryManagerResult |
getServiceDiscoveryManagerResult(LookupDiscoveryManager ldm,
String[] groups,
LookupLocator[] locators,
DiscoveryListener listener) |
public static LookupDiscoveryManager getLookupDiscoveryManager(String[] groups, LookupLocator[] locators, DiscoveryListener listener) throws IOException
IOException
public static SharedDiscoveryManagement.SharedServiceDiscoveryManager getBackwardsServiceDiscoveryManager(String[] groups, LookupLocator[] locators, DiscoveryListener listener) throws IOException
IOException
public static SharedDiscoveryManagement.SharedServiceDiscoveryManager getServiceDiscoveryManager(String[] groups, LookupLocator[] locators, DiscoveryListener listener) throws IOException
IOException
public static SharedDiscoveryManagement.SharedServiceDiscoveryManagerResult getServiceDiscoveryManagerResult(LookupDiscoveryManager ldm, String[] groups, LookupLocator[] locators, DiscoveryListener listener) throws IOException
IOException
public static void forceTerminate()
Copyright © GigaSpaces.