com.cisco.provisioning.cpe.events
Class NodeAdapter

java.lang.Object
  extended by com.cisco.provisioning.cpe.events.NodeAdapter
All Implemented Interfaces:
NodeListener, ProvAPIEventListener

public abstract class NodeAdapter
extends Object
implements NodeListener

Adapter class that implements NodeListener interface for NodeEvent events.

See Also:
ProvAPIEventListener

Field Summary
 
Fields inherited from interface com.cisco.provisioning.cpe.events.NodeListener
CHANGED_NODE, DELETED_NODE, NEW_NODE, RELATE_TO_IPDEVICE, RELATE_TO_NODE, UNRELATE_FROM_IPDEVICE, UNRELATE_FROM_NODE
 
Constructor Summary
NodeAdapter()
           
 
Method Summary
 void changedNode(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of a node's properties having been updated.
 void deletedNode(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of a node having been deleted.
 boolean getOneShot()
          Gets oneShot mode value, specifying whether or not the listener is registered for just one occurrence of the Event.
 void newNode(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of a node has been added.
 void relateToIPDevice(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of a node being related to an IP device.
 void relateToNode(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of a node being related to another node.
 void setOneShot(boolean flg)
          Sets oneShot mode, specifying that the registration request is for just one occurrence of the Event.
 void unrelateFromIPDevice(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of the node's association with an IP device is removed.
 void unrelateFromNode(NodeEvent ev)
          The method invoked when a NodeEvent arrives as a result of a node's association with another node is being removed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeAdapter

public NodeAdapter()
Method Detail

newNode

public void newNode(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of a node has been added.

Specified by:
newNode in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

deletedNode

public void deletedNode(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of a node having been deleted.

Specified by:
deletedNode in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

changedNode

public void changedNode(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of a node's properties having been updated.

Specified by:
changedNode in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

relateToNode

public void relateToNode(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of a node being related to another node.

Specified by:
relateToNode in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

relateToIPDevice

public void relateToIPDevice(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of a node being related to an IP device.

Specified by:
relateToIPDevice in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

unrelateFromNode

public void unrelateFromNode(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of a node's association with another node is being removed.

Specified by:
unrelateFromNode in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

unrelateFromIPDevice

public void unrelateFromIPDevice(NodeEvent ev)
The method invoked when a NodeEvent arrives as a result of the node's association with an IP device is removed.

Specified by:
unrelateFromIPDevice in interface NodeListener
Parameters:
ev - the NodeEvent object containing the event data.

getOneShot

public boolean getOneShot()
Gets oneShot mode value, specifying whether or not the listener is registered for just one occurrence of the Event.

Specified by:
getOneShot in interface ProvAPIEventListener
Returns:
true if oneShot mode has been set

setOneShot

public void setOneShot(boolean flg)
Sets oneShot mode, specifying that the registration request is for just one occurrence of the Event.

Specified by:
setOneShot in interface ProvAPIEventListener
Parameters:
flg - true if oneShot mode is being set