com.cisco.provisioning.cpe.events
Interface COSListener

All Superinterfaces:
ProvAPIEventListener
All Known Implementing Classes:
COSAdapter

public interface COSListener
extends ProvAPIEventListener

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
                         );
       ...
 

See Also:
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

NEW_COS

static final int NEW_COS
Event ID that indicates the NEW_COS sub-event type of the COSEvent. This indicates that a new class of service has been added to the database.

See Also:
Constant Field Values

DELETED_COS

static final int DELETED_COS
Event ID that indicates the DELETED_COS sub-event type of the COSEvent. This indicates that a class of service has been deleted from the database.

See Also:
Constant Field Values
Method Detail

newCOS

void newCOS(COSEvent ev)
The method invoked when a COSEvent arrives as a result of a class of service having been added.

Parameters:
ev - The object containing the COSEvent data.

deletedCOS

void deletedCOS(COSEvent ev)
The method invoked when a COSEvent arrives as a result of a class of service having been deleted.

Parameters:
ev - The object containing the COSEvent data.