com.adventnet.snmp.snmp2.agent
Class NotificationLogEntry

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.BaseTableEntry
      extended by com.adventnet.snmp.snmp2.agent.NotificationLogEntry
All Implemented Interfaces:
RowStatusHandlerInterface, TableEntry

public class NotificationLogEntry
extends BaseTableEntry
implements TableEntry

These entries will be instantiated whenever a Trap leaves the Agent if ReliableTrap support is on. API Users need not use the set methods as the fields will be filled from the Trap messages.


Field Summary
protected  int[] instanceOID
          The InstanceOID for this Entry.
protected  java.lang.String notificationOID
          The Trap OID.
protected  java.lang.Long notificationUpTime
          The Trap Up Time.
protected  java.lang.Integer notificationVarbindsCount
          The Number of VarBinds in the TrapPDU.
protected  java.lang.Integer notificationVersion
          The Version of the Trap message.
protected  java.lang.Integer reqID
          The Index reqId of the Trap message.
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseTableEntry
agentName
 
Constructor Summary
NotificationLogEntry()
           
 
Method Summary
 java.lang.String getNotificationOID()
          Handles the SNMP Get Request for notificationOID
 java.lang.Long getNotificationUpTime()
          Handles the SNMP Get Request for notificationLogTime
 java.lang.Integer getNotificationVarbindsCount()
          Handles the SNMP Get Request for notificationLogVarbinds
 java.lang.Integer getNotificationVersion()
          Handles the SNMP Get Request for notificationVersion
 java.lang.Integer getReqID()
          Handles the SNMP Get Request for reqID
 void setNotificationOID(java.lang.String value)
          Handles the SNMP Set Request for notificationOID
 void setNotificationUpTime(java.lang.Long value)
          Handles the SNMP Set Request for notificationLogTime
 void setNotificationVarbindsCount(java.lang.Integer value)
          Handles the SNMP Set Request for notificationLogVarbinds
 void setNotificationVersion(java.lang.Integer value)
          Handles the SNMP Set Request for notificationVersion
 void setReqID(java.lang.Integer value)
          Handles the SNMP Set Request for reqID
 void setrowStatus(java.lang.Integer value)
          This method is used for recomputing the Instance OID.
 
Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseTableEntry
computeInstanceOID, decrementCount, getAttributes, getCount, getInstanceOID, setAgentRef, setCount, setInstanceOID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.adventnet.utils.agent.TableEntry
computeInstanceOID, getInstanceOID, setInstanceOID
 

Field Detail

reqID

protected java.lang.Integer reqID
The Index reqId of the Trap message.


notificationVersion

protected java.lang.Integer notificationVersion
The Version of the Trap message.


notificationUpTime

protected java.lang.Long notificationUpTime
The Trap Up Time.


notificationOID

protected java.lang.String notificationOID
The Trap OID.


notificationVarbindsCount

protected java.lang.Integer notificationVarbindsCount
The Number of VarBinds in the TrapPDU.


instanceOID

protected int[] instanceOID
The InstanceOID for this Entry.

Constructor Detail

NotificationLogEntry

public NotificationLogEntry()
Method Detail

getReqID

public java.lang.Integer getReqID()
                           throws AgentException
Handles the SNMP Get Request for reqID

Returns:
The ReqID of this Trap.
Throws:
AgentException - This Wraps all the Exceptions thrown while processing this event.

setReqID

public void setReqID(java.lang.Integer value)
              throws AgentException
Handles the SNMP Set Request for reqID

Parameters:
value - The Integer value for ReqID
Throws:
AgentException

getNotificationUpTime

public java.lang.Long getNotificationUpTime()
                                     throws AgentException
Handles the SNMP Get Request for notificationLogTime

Returns:
The Notification UpTime of this Trap.
Throws:
AgentException - This Wraps all the Exceptions thrown while processing this event.

setNotificationUpTime

public void setNotificationUpTime(java.lang.Long value)
Handles the SNMP Set Request for notificationLogTime

Parameters:
value - The Long value for the NotificationUpTime.

getNotificationVarbindsCount

public java.lang.Integer getNotificationVarbindsCount()
                                               throws AgentException
Handles the SNMP Get Request for notificationLogVarbinds

Returns:
The number of VarBinds count in this Trap PDU.
Throws:
AgentException - This Wraps all the Exceptions thrown while processing this event.

setNotificationVarbindsCount

public void setNotificationVarbindsCount(java.lang.Integer value)
Handles the SNMP Set Request for notificationLogVarbinds

Parameters:
value - Integer specifying the number of VarBinds count.

getNotificationOID

public java.lang.String getNotificationOID()
                                    throws AgentException
Handles the SNMP Get Request for notificationOID

Returns:
The NotificationOID of this Trap.
Throws:
AgentException - This Wraps all the Exceptions thrown while processing this event.

setNotificationOID

public void setNotificationOID(java.lang.String value)
Handles the SNMP Set Request for notificationOID

Parameters:
value - The OID String for NotificationOID

getNotificationVersion

public java.lang.Integer getNotificationVersion()
                                         throws AgentException
Handles the SNMP Get Request for notificationVersion

Returns:
The Notification SNMP Version of this Trap PDU.
Throws:
AgentException - This Wraps all the Exceptions thrown while processing this event.

setNotificationVersion

public void setNotificationVersion(java.lang.Integer value)
Handles the SNMP Set Request for notificationVersion

Parameters:
value - Integer Specifying the SNMP Version of this TrapPDU.

setrowStatus

public void setrowStatus(java.lang.Integer value)
This method is used for recomputing the Instance OID.

Specified by:
setrowStatus in interface RowStatusHandlerInterface
Parameters:
value - the Integer specifying the rowStatus value.
See Also:
AgentUtil.encodeInstanceString