com.cisco.provisioning.cpe.events
Interface DHCPCriteriaListener

All Superinterfaces:
ProvAPIEventListener
All Known Implementing Classes:
DHCPCriteriaAdapter

public interface DHCPCriteriaListener
extends ProvAPIEventListener

The Listener interface for DHCPCriteriaEvent. The addDHCPCriteriaListener method on the PACEConnection instance may be used to register DHCPCriteriaListener instances.

Sample Usage:

      // Implement DHCPCriteriaListener interface
      public class MyDHCPCriteriaListener implements
                                      DHCPCriteriaListener
      {
          ...
      }

      // Create an instance of DHCPCriteriaEventQualifier
      // [You may also use an instance of QualifyAll
      // that performs no filtering.]
      myQualifier = new DHCPCriteriaEventQualifier();
      // We care only about new DHCP Criteria
      myQualifier.setNewDHCPCriteria();

      // Register DHCP Criteria listener using PACEConnection
      ...
      conn.addDHCPCriteriaListener(
          new MyDHCPCriteriaListener(), // DHCPCriteriaListener
          myQualifier // Qualifier
          );
       ...
 


Field Summary
static int CHANGED_DHCP_CRITERIA
          Event ID that indicates the CHANGED_DHCP_CRITERIA sub-event type of the DHCPCriteriaEvent.
static int DELETED_DHCP_CRITERIA
          Event ID that indicates the DELETED_DHCP_CRITERIA sub-event type of the DHCPCriteriaEvent.
static int NEW_DHCP_CRITERIA
          Event ID that indicates the NEW_DHCP_CRITERIA sub-event type of the DHCPCriteriaEvent.
 
Method Summary
 void changedDHCPCriteria(DHCPCriteriaEvent ev)
          The method invoked when a DHCPCriteriaEvent arrives as a result of a DHCPCriteria having been updated.
 void deletedDHCPCriteria(DHCPCriteriaEvent ev)
          The method invoked when a DHCPCriteriaEvent arrives as a result of a DHCPCriteria having been deleted.
 void newDHCPCriteria(DHCPCriteriaEvent ev)
          The method invoked when a DHCPCriteriaEvent arrives as a result of a DHCPCriteria having been added.
 
Methods inherited from interface com.cisco.provisioning.cpe.events.ProvAPIEventListener
getOneShot, setOneShot
 

Field Detail

NEW_DHCP_CRITERIA

static final int NEW_DHCP_CRITERIA
Event ID that indicates the NEW_DHCP_CRITERIA sub-event type of the DHCPCriteriaEvent. This indicates that a new, DHCPCriteria has been added to BPR.

See Also:
Constant Field Values

DELETED_DHCP_CRITERIA

static final int DELETED_DHCP_CRITERIA
Event ID that indicates the DELETED_DHCP_CRITERIA sub-event type of the DHCPCriteriaEvent. This indicates that a DHCPCriteria has been deleted from BPR.

See Also:
Constant Field Values

CHANGED_DHCP_CRITERIA

static final int CHANGED_DHCP_CRITERIA
Event ID that indicates the CHANGED_DHCP_CRITERIA sub-event type of the DHCPCriteriaEvent. This indicates that some attributes (client class, selection tags and/or properties) of the DHCP Criteria has been changed.

See Also:
Constant Field Values
Method Detail

newDHCPCriteria

void newDHCPCriteria(DHCPCriteriaEvent ev)
The method invoked when a DHCPCriteriaEvent arrives as a result of a DHCPCriteria having been added.

Parameters:
ev - The object containing the DHCPCriteriaEvent data.

deletedDHCPCriteria

void deletedDHCPCriteria(DHCPCriteriaEvent ev)
The method invoked when a DHCPCriteriaEvent arrives as a result of a DHCPCriteria having been deleted.

Parameters:
ev - The object containing the DHCPCriteriaEvent data.

changedDHCPCriteria

void changedDHCPCriteria(DHCPCriteriaEvent ev)
The method invoked when a DHCPCriteriaEvent arrives as a result of a DHCPCriteria having been updated.

Parameters:
ev - The object containing the DHCPCriteriaEvent data.