|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jini.discovery.LookupLocatorDiscovery
This class allows one to find out about specific instances of the Jini lookup service, nearby or far away, using LookupLocators. It provides a simple unified front end to the unicast discovery protocol. The operations are appropriately synchronized for concurrent operation.
Constructor Summary | |
LookupLocatorDiscovery(LookupLocator[] locators)
Create a LookupLocatorDiscovery, with an initial array of LookupLocators to be managed. |
Method Summary | |
void |
addDiscoveryListener(DiscoveryListener l)
Add a DiscoveryListener to the listener set. |
void |
addLocators(LookupLocator[] locators)
Adds LookupLocators to managed set. |
void |
discard(ServiceRegistrar proxy)
Discard a LookupLocator from the discovered LookupLocator set. |
LookupLocator[] |
getDiscoveredLocators()
Returns an array of the managed LookupLocators for which corresponding lookup services have been discovered. |
LookupLocator[] |
getLocators()
Returns an array of the LookupLocators that are being managed. |
LookupLocator[] |
getUndiscoveredLocators()
Returns an array of the managed LookupLocators for which corresponding lookup services have not yet been discovered. |
void |
removeDiscoveryListener(DiscoveryListener l)
Remove a DiscoveryListener from the listener set. |
void |
removeLocators(LookupLocator[] locators)
Removes LookupLocators from the managed set, and discards any associated discovered lookup services. |
void |
setLocators(LookupLocator[] locators)
Replaces the currently managed LookupLocators with a new set. |
void |
terminate()
Terminates all daemon threads. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LookupLocatorDiscovery(LookupLocator[] locators)
locators
- the locators to discoverMethod Detail |
public void addDiscoveryListener(DiscoveryListener l)
l
- the new DiscoveryListener to addpublic void removeDiscoveryListener(DiscoveryListener l)
l
- the existing DiscoveryListener to removepublic void discard(ServiceRegistrar proxy)
proxy
- the ServiceRegistrar of the LookupLocator to discardpublic LookupLocator[] getLocators()
public void addLocators(LookupLocator[] locators)
locators
- the LookupLocators to addpublic void removeLocators(LookupLocator[] locators)
locators
- the LookupLocators to removepublic void setLocators(LookupLocator[] locators)
locators
- the new LookupLocatorspublic void terminate()
public LookupLocator[] getDiscoveredLocators()
public LookupLocator[] getUndiscoveredLocators()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |