GigaSpaces XAP 9.1 API

net.jini.discovery.dynamic
Class DynamicLookupLocatorDiscovery

java.lang.Object
  extended by net.jini.discovery.dynamic.DynamicLookupLocatorDiscovery
All Implemented Interfaces:
EventListener, DiscoveryListener

public class DynamicLookupLocatorDiscovery
extends Object
implements DiscoveryListener

Since:
9.1
Author:
Dan Kilman

Field Summary
static Comment DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE
           
 
Constructor Summary
DynamicLookupLocatorDiscovery(LookupDiscoveryManager ldm, boolean runningWithinRegistrar)
           
 
Method Summary
 void addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
          Adds a listener to be notified when current locators used by the DiscoveryLocatorManagement are changed by this component
 boolean awaitInitialization(long timeout, TimeUnit unit)
           
 void discarded(DiscoveryEvent e)
          Called when one or more lookup service registrars has been discarded.
 void discovered(DiscoveryEvent e)
          Called when one or more lookup service registrars has been discovered.
static boolean dynamicLocatorsEnabled()
           
 Exception getInitializationException()
           
 void init(ServiceID serviceID)
           
 boolean isInitialized()
           
 void removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
           
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE

public static final Comment DYNAMIC_LOCATORS_ENABLED_LOOKUP_ATTRIBUTE
Constructor Detail

DynamicLookupLocatorDiscovery

public DynamicLookupLocatorDiscovery(LookupDiscoveryManager ldm,
                                     boolean runningWithinRegistrar)
Method Detail

dynamicLocatorsEnabled

public static boolean dynamicLocatorsEnabled()

init

public void init(ServiceID serviceID)

terminate

public void terminate()

awaitInitialization

public boolean awaitInitialization(long timeout,
                                   TimeUnit unit)
                            throws InterruptedException
Throws:
InterruptedException

isInitialized

public boolean isInitialized()

getInitializationException

public Exception getInitializationException()
Returns:
If an exception occured during initialization, then it will be retured, otherwise, null will be returned

discovered

public void discovered(DiscoveryEvent e)
Description copied from interface: DiscoveryListener
Called when one or more lookup service registrars has been discovered. The method should return quickly; e.g., it should not make remote calls.

Specified by:
discovered in interface DiscoveryListener
Parameters:
e - the event that describes the discovered registrars

discarded

public void discarded(DiscoveryEvent e)
Description copied from interface: DiscoveryListener
Called when one or more lookup service registrars has been discarded. The method should return quickly; e.g., it should not make remote calls.

Specified by:
discarded in interface DiscoveryListener
Parameters:
e - the event that describes the discarded registrars

addLookupLocatorsChangeListener

public void addLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)
Adds a listener to be notified when current locators used by the DiscoveryLocatorManagement are changed by this component

Parameters:
listener -

removeLookupLocatorsChangeListener

public void removeLookupLocatorsChangeListener(LookupLocatorsChangeListener listener)

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.