com.cisco.provisioning.cpe.events
Class DeviceAdapter

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

public abstract class DeviceAdapter
extends Object
implements DeviceListener

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


Field Summary
 
Fields inherited from interface com.cisco.provisioning.cpe.events.DeviceListener
CHANGED_COS, CHANGED_DHCP_CRITERIA, DELETED_DEVICE, DELETED_DEVICE_ID, DELETED_VOICE_SERVICE, NEW_PROV_DEVICE, NEW_UNPROV_DEVICE, NEW_VOICE_SERVICE, RECEIVED_STATUS, ROAMING_DEVICE
 
Constructor Summary
DeviceAdapter()
           
 
Method Summary
 void changedCoS(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a new device receiving a new class of service.
 void changedDHCPCriteria(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a new device receiving a new DHCP Criteria.
 void deletedDevice(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a device having been deleted.
 void deletedDeviceId(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a device identifier having been deleted.
 void deletedVoiceService(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a voice service having been deleted from a device.
 boolean getOneShot()
          Gets oneShot mode value, specifying whether or not the listener is registered for just one occurrence of the Event.
 void newProvDevice(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a new device being registered.
 void newUnprovDevice(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a new, unregistered device being detected.
 void newVoiceService(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a new voice service being added to a device.
 void receivedStatus(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a device sending its provisioning status to BPR.
 void roaming(DeviceEvent ev)
          The method invoked when a DeviceEvent arrives as a result of a device being relocated.
 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

DeviceAdapter

public DeviceAdapter()
Method Detail

newUnprovDevice

public void newUnprovDevice(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a new, unregistered device being detected.

Specified by:
newUnprovDevice in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

newProvDevice

public void newProvDevice(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a new device being registered.

Specified by:
newProvDevice in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

roaming

public void roaming(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a device being relocated.

Specified by:
roaming in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

changedCoS

public void changedCoS(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a new device receiving a new class of service.

Specified by:
changedCoS in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

deletedDevice

public void deletedDevice(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a device having been deleted.

Specified by:
deletedDevice in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

newVoiceService

public void newVoiceService(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a new voice service being added to a device.

Specified by:
newVoiceService in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

deletedVoiceService

public void deletedVoiceService(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a voice service having been deleted from a device.

Specified by:
deletedVoiceService in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.

receivedStatus

public void receivedStatus(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a device sending its provisioning status to BPR.

Currently only Packetcable MTA's indicate their status.

Specified by:
receivedStatus in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent 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.

changedDHCPCriteria

public void changedDHCPCriteria(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a new device receiving a new DHCP Criteria.

Specified by:
changedDHCPCriteria in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data..

deletedDeviceId

public void deletedDeviceId(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a result of a device identifier having been deleted.

Specified by:
deletedDeviceId in interface DeviceListener
Parameters:
ev - The object containing the DeviceEvent data.