com.cisco.provisioning.cpe.events
Class COSAdapter

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

public abstract class COSAdapter
extends Object
implements COSListener

An abstract class that provides no-op definitions of all methods in the COSListener interface. Users must extend this class, and then implement the methods for the desired COSEvent sub-event notifications.


Field Summary
 
Fields inherited from interface com.cisco.provisioning.cpe.events.COSListener
DELETED_COS, NEW_COS
 
Constructor Summary
COSAdapter()
           
 
Method Summary
 void deletedCOS(COSEvent ev)
          The method invoked when a COSEvent arrives as a result of a Class Of Service 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 newCOS(COSEvent ev)
          The method invoked when a COSEvent arrives as a result of a Class Of Service having been added.
 void setOneShot(boolean flg)
          Sets oneShot mode, specifying that the registration request is for just one occurrence of the Event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

COSAdapter

public COSAdapter()
Method Detail

newCOS

public void newCOS(COSEvent ev)
The method invoked when a COSEvent arrives as a result of a Class Of Service having been added.

Specified by:
newCOS in interface COSListener
Parameters:
ev - The object containing the COSEvent data.

deletedCOS

public void deletedCOS(COSEvent ev)
The method invoked when a COSEvent arrives as a result of a Class Of Service having been deleted.

Specified by:
deletedCOS in interface COSListener
Parameters:
ev - The object containing the COSEvent 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