|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DeviceListener
The Listener interface for device events. The
addDeviceListener
method on the PACEConnection instance may be used to
register DeviceListener instances.
Sample Usage:
// Implement DeviceListener interface
public class MyDeviceListener implements DeviceListener
{
...
}
// Create an instance of DeviceEventQualifier
myQualifier = new DeviceEventQualifier();
// We need to get an event when ever a new device is added
// [You may also use an instance of QualifyAll
// that performs no filtering.]
myQualifier.setNewDevice();
// Register device listener using PACEConnection
...
conn.addDeviceListener(
new MyDeviceListener(), // BatchListener
myQualifier // Qualifier
);
...
| Field Summary | |
|---|---|
static int |
CHANGED_COS
Event ID that indicates the CHANGED_COS sub-event type of the DeviceEvent. |
static int |
CHANGED_DHCP_CRITERIA
Event ID that indicates the CHANGED_DHCP_CRITERIA sub-event type of the DeviceEvent. |
static int |
DELETED_DEVICE
Event ID that indicates the DELETED_DEVICE sub-event type of the DeviceEvent. |
static int |
DELETED_DEVICE_ID
Event ID that indicates the DELETED_DEVICE_ID sub-event type of the DeviceEvent. |
static int |
DELETED_VOICE_SERVICE
Event ID that indicates the DELETED_VOICE_SERVICE sub-event type of the DeviceEvent. |
static int |
NEW_PROV_DEVICE
Event ID that indicates the NEW_PROV_DEVICE sub-event type of the DeviceEvent. |
static int |
NEW_UNPROV_DEVICE
Event ID that indicates the NEW_UNPROV_DEVICE sub-event type of the DeviceEvent. |
static int |
NEW_VOICE_SERVICE
Event ID that indicates the NEW_VOICE_SERVICE sub-event type of the DeviceEvent. |
static int |
RECEIVED_STATUS
Event ID that indicates the RECEIVED_STATUS sub-event type of the DeviceEvent. |
static int |
ROAMING_DEVICE
Event ID that indicates the ROAMING_DEVICE sub-event type of the DeviceEvent. |
| 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 from the device. |
void |
deletedVoiceService(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a
result of a voice service having been deleted from a device. |
void |
newProvDevice(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a
result of a new device being provisioned. |
void |
newUnprovDevice(DeviceEvent ev)
The method invoked when a DeviceEvent arrives as a
result of a new, unprovisioned 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. |
| Methods inherited from interface com.cisco.provisioning.cpe.events.ProvAPIEventListener |
|---|
getOneShot, setOneShot |
| Field Detail |
|---|
static final int NEW_UNPROV_DEVICE
DeviceEvent. This indicates that a new,
unprovisioned device has been added to BPR.
static final int NEW_PROV_DEVICE
DeviceEvent. This indicates that a new,
provisioned device has been added to BPR.
static final int ROAMING_DEVICE
DeviceEvent. This indicates that a roaming\
device has been detected.
static final int CHANGED_COS
DeviceEvent. This indicates that a device
has received a change in Class of Service (CoS).
static final int DELETED_DEVICE
DeviceEvent. This indicates that a device
has been deleted from BPR.
static final int NEW_VOICE_SERVICE
DeviceEvent. This indicates that a new voice
service has been added to a device in BPR.
static final int DELETED_VOICE_SERVICE
DeviceEvent. This indicates that a voice
service has been deleted from a device in BPR.
static final int RECEIVED_STATUS
DeviceEvent. This indicates that a device has
sent its status to BPR.
Currently only Packetcable MTA's send their status to indicate the state of provisioning.
static final int CHANGED_DHCP_CRITERIA
DeviceEvent. This indicates that a device has
received a change in DHCP Criteria
static final int DELETED_DEVICE_ID
DeviceEvent. This indicates that a device identifier
has been deleted from BPR.
| Method Detail |
|---|
void newUnprovDevice(DeviceEvent ev)
DeviceEvent arrives as a
result of a new, unprovisioned device being detected.
ev - The object containing the
DeviceEvent data.void newProvDevice(DeviceEvent ev)
DeviceEvent arrives as a
result of a new device being provisioned.
ev - The object containing the
DeviceEvent data.void roaming(DeviceEvent ev)
DeviceEvent arrives as a
result of a device being relocated.
ev - The object containing the
DeviceEvent data.void changedCoS(DeviceEvent ev)
DeviceEvent arrives as a
result of a new device receiving a new Class of Service.
ev - The object containing the
DeviceEvent data.void deletedDevice(DeviceEvent ev)
DeviceEvent arrives as a
result of a device having been deleted.
ev - The object containing the
DeviceEvent data.void newVoiceService(DeviceEvent ev)
DeviceEvent arrives as a
result of a new voice service being added to a device.
ev - The object containing the
DeviceEvent data.void deletedVoiceService(DeviceEvent ev)
DeviceEvent arrives as a
result of a voice service having been deleted from a device.
ev - The object containing the
DeviceEvent data.void receivedStatus(DeviceEvent ev)
DeviceEvent arrives as a
result of a device sending its provisioning status to BPR.
Currently only Packetcable MTA's indicate their status.
ev - The object containing the
DeviceEvent data.void changedDHCPCriteria(DeviceEvent ev)
DeviceEvent arrives as a
result of a new device receiving a new DHCP Criteria.
ev - The object containing the
DeviceEvent data.void deletedDeviceId(DeviceEvent ev)
DeviceEvent arrives as a
result of a device identifier having been deleted from the device.
ev - The object containing the
DeviceEvent data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||