com.sun.jini.fiddler
Class FiddlerImpl.LookupDiscoveryListener

java.lang.Object
  extended by com.sun.jini.fiddler.FiddlerImpl.LookupDiscoveryListener
All Implemented Interfaces:
EventListener, DiscoveryChangeListener, DiscoveryListener
Enclosing class:
FiddlerImpl

private class FiddlerImpl.LookupDiscoveryListener
extends Object
implements DiscoveryChangeListener

Class whose discovered() method is invoked by threads in the LookupDiscovery class whenever a new lookup service is discovered on behalf of a client registration


Constructor Summary
FiddlerImpl.LookupDiscoveryListener()
           
 
Method Summary
 void changed(DiscoveryEvent event)
          Called when changes are detected in the discovery state of one or more of the previously discovered lookup services; in particular, when changes occur in the member groups to which those lookup services belong.
 void discarded(DiscoveryEvent event)
          Called when one or more lookup service registrars has been discarded.
 void discovered(DiscoveryEvent event)
          Called when one or more lookup service registrars has been discovered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FiddlerImpl.LookupDiscoveryListener

public FiddlerImpl.LookupDiscoveryListener()
Method Detail

discovered

public void discovered(DiscoveryEvent event)
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:
event - the event that describes the discovered registrars

discarded

public void discarded(DiscoveryEvent event)
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:
event - the event that describes the discarded registrars

changed

public void changed(DiscoveryEvent event)
Description copied from interface: DiscoveryChangeListener
Called when changes are detected in the discovery state of one or more of the previously discovered lookup services; in particular, when changes occur in the member groups to which those lookup services belong. Note that implementations of this method should return quickly; e.g., such implementations should never make remote invocations.

Specified by:
changed in interface DiscoveryChangeListener
Parameters:
event - instance of net.jini.discovery.DiscoveryEvent representing the event that describes the lookup services whose discovery state has changed


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.