| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiscoveryManagement
This interface defines methods related to the discovery event mechanism and discovery process termination. Through this interface an entity can register or un-register for discovery events, discard a lookup service, or terminate the discovery process.
| Method Summary | |
|---|---|
 void | 
addDiscoveryListener(DiscoveryListener listener)
Adds an instance of DiscoveryListener to the set of
 objects listening for discovery events. | 
 void | 
discard(ServiceRegistrar proxy)
Removes an instance of ServiceRegistrar from the
 managed set of lookup services, making the corresponding lookup
 service eligible for re-discovery. | 
 ServiceRegistrar[] | 
getRegistrars()
Returns an array of instances of ServiceRegistrar, each
 corresponding to a proxy to one of the currently discovered lookup
 services. | 
 void | 
removeDiscoveryListener(DiscoveryListener listener)
Removes a listener from the set of objects listening for discovery events.  | 
 void | 
terminate()
Ends all discovery processing being performed by the current implementation of this interface.  | 
| Method Detail | 
|---|
void addDiscoveryListener(DiscoveryListener listener)
DiscoveryListener to the set of
 objects listening for discovery events. Once the listener is
 registered, it will be notified of all lookup services discovered
 to date, and will then be notified as new lookup services are
 discovered or existing lookup services are discarded.
 
 If null is input to this method, a
 NullPointerException is thrown. If the listener
 input to this method duplicates (using the equals
 method) another element in the current set of listeners, no action
 is taken.
listener - an instance of DiscoveryListener 
                 corresponding to the listener to add to the set of
                 listeners.
NullPointerException - if null is
         input to the listener parameterremoveDiscoveryListener(net.jini.discovery.DiscoveryListener), 
DiscoveryListenervoid removeDiscoveryListener(DiscoveryListener listener)
listener - an instance of DiscoveryListener
                 corresponding to the listener to remove from the set
                 of listeners.addDiscoveryListener(net.jini.discovery.DiscoveryListener), 
DiscoveryListenerServiceRegistrar[] getRegistrars()
ServiceRegistrar, each
 corresponding to a proxy to one of the currently discovered lookup
 services. For each invocation of this method, a new array is returned.
ServiceRegistrar, each
         corresponding to a proxy to one of the currently discovered
         lookup servicesServiceRegistrarvoid discard(ServiceRegistrar proxy)
ServiceRegistrar from the
 managed set of lookup services, making the corresponding lookup
 service eligible for re-discovery. This method takes no action if
 the parameter input to this method is null, or if it
 does not match (using equals) any of the elements in
 the managed set.
proxy - the instance of ServiceRegistrar to remove
              from the managed set of lookup servicesServiceRegistrarvoid terminate()
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||