org.objectweb.proactive.core.event
Class RuntimeRegistrationEventProducerImpl

java.lang.Object
  |
  +--org.objectweb.proactive.core.event.AbstractEventProducer
        |
        +--org.objectweb.proactive.core.event.RuntimeRegistrationEventProducerImpl
All Implemented Interfaces:
RuntimeRegistrationEventProducer, java.io.Serializable
Direct Known Subclasses:
ProActiveRuntimeImpl

public class RuntimeRegistrationEventProducerImpl
extends AbstractEventProducer
implements RuntimeRegistrationEventProducer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.objectweb.proactive.core.event.AbstractEventProducer
AbstractEventProducer.ListenerList
 
Field Summary
 
Fields inherited from class org.objectweb.proactive.core.event.AbstractEventProducer
eventListeners, logger, shouldSerializeListeners
 
Constructor Summary
RuntimeRegistrationEventProducerImpl()
           
 
Method Summary
 void addRuntimeRegistrationEventListener(RuntimeRegistrationEventListener listener)
          Adds a listener of RuntimeRegistrationEvent.
protected  void notifyListeners(ProActiveRuntime proActiveRuntime, int type, java.lang.String registeredRuntimeName, java.lang.String creatorID, java.lang.String protocol, java.lang.String vmName)
           
protected  void notifyOneListener(ProActiveListener proActiveListener, ProActiveEvent event)
          Notifies one listener with the event.
 void removeRuntimeRegistrationEventListener(RuntimeRegistrationEventListener listener)
          Removes the RuntimeRegistrationEventListener.
 
Methods inherited from class org.objectweb.proactive.core.event.AbstractEventProducer
addListener, hasListeners, notifyAllListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeRegistrationEventProducerImpl

public RuntimeRegistrationEventProducerImpl()
Method Detail

addRuntimeRegistrationEventListener

public void addRuntimeRegistrationEventListener(RuntimeRegistrationEventListener listener)
Description copied from interface: RuntimeRegistrationEventProducer
Adds a listener of RuntimeRegistrationEvent. The listener will receive event a remote runtime registers on this runtime.

Specified by:
addRuntimeRegistrationEventListener in interface RuntimeRegistrationEventProducer
Parameters:
listener - the listener to add
See Also:
RuntimeRegistrationEventProducer.addRuntimeRegistrationEventListener(RuntimeRegistrationEventListener)

removeRuntimeRegistrationEventListener

public void removeRuntimeRegistrationEventListener(RuntimeRegistrationEventListener listener)
Description copied from interface: RuntimeRegistrationEventProducer
Removes the RuntimeRegistrationEventListener.

Specified by:
removeRuntimeRegistrationEventListener in interface RuntimeRegistrationEventProducer
Parameters:
listener - the listener to remove
See Also:
RuntimeRegistrationEventProducer.removeRuntimeRegistrationEventListener(RuntimeRegistrationEventListener)

notifyOneListener

protected void notifyOneListener(ProActiveListener proActiveListener,
                                 ProActiveEvent event)
Description copied from class: AbstractEventProducer
Notifies one listener with the event.

Specified by:
notifyOneListener in class AbstractEventProducer
See Also:
AbstractEventProducer.notifyOneListener(ProActiveListener, ProActiveEvent)

notifyListeners

protected void notifyListeners(ProActiveRuntime proActiveRuntime,
                               int type,
                               java.lang.String registeredRuntimeName,
                               java.lang.String creatorID,
                               java.lang.String protocol,
                               java.lang.String vmName)


Copyright © April 2004 INRIA All Rights Reserved.