|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface COSListener
The Listener interface for COS (class of service) events.
The addCOSListener method on the
PACEConnection instance may be used to
register COSListener instances.
Sample Usage:
// Implement COSListener interface
public class MyCOSListener implements COSListener
{
...
}
// Create an instance of COSEventQualifier and
// filter to NEW_COS sub type.
// [You may also use an instance of QualifyAll
// that performs no filtering.]
myQualifier = new COSEventQualifier();
// Filter it to notify new COS events only.
myQualifier.setNewCOS();
// Register COS listener using PACEConnection
...
conn.addCOSListener(new MyCOSListener(), // COSListener
myQualifier // Qualifier
);
...
ProvAPIEventListener| Field Summary | |
|---|---|
static int |
DELETED_COS
Event ID that indicates the DELETED_COS sub-event type of the COSEvent. |
static int |
NEW_COS
Event ID that indicates the NEW_COS sub-event type of the COSEvent. |
| Method Summary | |
|---|---|
void |
deletedCOS(COSEvent ev)
The method invoked when a COSEvent arrives as a
result of a class of service having been deleted. |
void |
newCOS(COSEvent ev)
The method invoked when a COSEvent arrives as a
result of a class of service having been added. |
| Methods inherited from interface com.cisco.provisioning.cpe.events.ProvAPIEventListener |
|---|
getOneShot, setOneShot |
| Field Detail |
|---|
static final int NEW_COS
COSEvent. This indicates that a new class of
service has been added to the database.
static final int DELETED_COS
COSEvent. This indicates that a class of
service has been deleted from the database.
| Method Detail |
|---|
void newCOS(COSEvent ev)
COSEvent arrives as a
result of a class of service having been added.
ev - The object containing the COSEvent data.void deletedCOS(COSEvent ev)
COSEvent arrives as a
result of a class of service having been deleted.
ev - The object containing the COSEvent data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||