com.adventnet.snmp.snmp2.agent
Class BaseTableRequestHandler

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
      extended by com.adventnet.snmp.snmp2.agent.BaseTableRequestHandler
All Implemented Interfaces:
VarBindRequestListener, AgentEventListener
Direct Known Subclasses:
BaseAclTableRequestHandler, NotificationLogTableRequestHandler, NotificationVarbindTableRequestHandler, SnmpNotifyFilterProfileTableRequestHandler, SnmpNotifyFilterTableRequestHandler, SnmpNotifyTableRequestHandler, SnmpTargetParamsTableRequestHandler, VaclTableRequestHandler

public abstract class BaseTableRequestHandler
extends SimpleRequestHandler

This class consolidates all the common functionalities to be done in the APITabeRequestHandlers.

This Class is extended by all the APITabeRequestHandlers.


Field Summary
protected  BaseSnmpAgent agentName
          The reference for the Snmp Agent Instance.
 java.util.Vector listenerList
          The List of Change Listeners.
 AgentTableModel tModelComplete
          This stores the Agent Table Models.
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
instrumentHandler, listener, tableListener, writeEachTime
 
Constructor Summary
BaseTableRequestHandler()
          The Default Constructor.
 
Method Summary
 void addChangeListener(ChangeListener l)
          This method adds a Change Listener.
 ChangeEvent createChangeEvent(byte requestType, int subId, SnmpVarBind varb, int[] oidArray)
          The method to create a Change Event.
 void fireChangeEvent(ChangeEvent ce)
          This method is to call the Change Event Listeners.
 java.util.Vector getTableVector()
          Getter for the Table Vector values.
 void removeChangeListener(ChangeListener l)
          This method removes a Change Listener.
 void setTableVector(java.util.Vector tableVector)
          Setter for the Table Vector.
 
Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
addInstrumentHandler, addRegistrationListener, addTableListener, addUpdateListener, getInstrument, getMibVarHash, getNextRequest, getNextRequest, getObjectHash, getObjectTypeHash, getOidRep, getRequest, getSubidList, getTableListener, getUpdateListener, isWriteEachTime, processGetNextRequest, processGetNextRequest, processGetRequest, processGetRequest, processSetRequest, processSetRequest, removeRegistrationListener, removeUpdateListener, setRequest, setWriteEachTime, writeIntoFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentName

protected BaseSnmpAgent agentName
The reference for the Snmp Agent Instance.


listenerList

public java.util.Vector listenerList
The List of Change Listeners.


tModelComplete

public AgentTableModel tModelComplete
This stores the Agent Table Models.

Constructor Detail

BaseTableRequestHandler

public BaseTableRequestHandler()
The Default Constructor.

Method Detail

setTableVector

public void setTableVector(java.util.Vector tableVector)
Setter for the Table Vector.

Parameters:
tableVector - The Table Vector Value to be set.

getTableVector

public java.util.Vector getTableVector()
Getter for the Table Vector values.

Returns:
The Table Vector value requested.

createChangeEvent

public ChangeEvent createChangeEvent(byte requestType,
                                     int subId,
                                     SnmpVarBind varb,
                                     int[] oidArray)
The method to create a Change Event.

Parameters:
requestType - The Requested Type for the event.
subId - The Sub ID value.
varb - The Snmp Varbind Received.
oidArray - The OID array value.
Returns:
The ChangeEvent created.

addChangeListener

public void addChangeListener(ChangeListener l)
This method adds a Change Listener.

Parameters:
l - The Change Listener to be added.

removeChangeListener

public void removeChangeListener(ChangeListener l)
This method removes a Change Listener.

Parameters:
l - The Change Listener that is to be removed.

fireChangeEvent

public void fireChangeEvent(ChangeEvent ce)
This method is to call the Change Event Listeners.

Parameters:
ce - The Change Event to be called.