org.objectweb.proactive.core.event
Class NodeCreationEventProducerImpl

java.lang.Object
  extended byorg.objectweb.proactive.core.event.AbstractEventProducer
      extended byorg.objectweb.proactive.core.event.NodeCreationEventProducerImpl
All Implemented Interfaces:
NodeCreationEventProducer, java.io.Serializable
Direct Known Subclasses:
VirtualNodeImpl

public class NodeCreationEventProducerImpl
extends AbstractEventProducer
implements NodeCreationEventProducer

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
NodeCreationEventProducerImpl()
           
 
Method Summary
 void addNodeCreationEventListener(NodeCreationEventListener listener)
          Adds a listener of NodeCreationEvent.
protected  void notifyListeners(VirtualNode vn, int type, Node node, int nodeCreated)
           
protected  void notifyOneListener(ProActiveListener proActiveListener, ProActiveEvent event)
          Notifies one listener with the event.
 void removeNodeCreationEventListener(NodeCreationEventListener listener)
          Removes the NodeCreationEventListener.
 
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

NodeCreationEventProducerImpl

public NodeCreationEventProducerImpl()
Method Detail

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
Parameters:
proActiveListener - the listener to notify.
event - the event to fire to the listener.
See Also:
AbstractEventProducer.notifyOneListener(ProActiveListener, ProActiveEvent)

notifyListeners

protected void notifyListeners(VirtualNode vn,
                               int type,
                               Node node,
                               int nodeCreated)

addNodeCreationEventListener

public void addNodeCreationEventListener(NodeCreationEventListener listener)
Description copied from interface: NodeCreationEventProducer
Adds a listener of NodeCreationEvent. The listener will receive event when a node is created on a VirtualNode.

Specified by:
addNodeCreationEventListener in interface NodeCreationEventProducer
Parameters:
listener - the listener to add
See Also:
NodeCreationEventProducer.addNodeCreationEventListener(org.objectweb.proactive.core.event.NodeCreationEventListener)

removeNodeCreationEventListener

public void removeNodeCreationEventListener(NodeCreationEventListener listener)
Description copied from interface: NodeCreationEventProducer
Removes the NodeCreationEventListener.

Specified by:
removeNodeCreationEventListener in interface NodeCreationEventProducer
Parameters:
listener - the listener to remove
See Also:
NodeCreationEventProducer.removeNodeCreationEventListener(org.objectweb.proactive.core.event.NodeCreationEventListener)


Copyright ? October 2004 INRIA All Rights Reserved.