com.adventnet.snmp.snmp2.agent
Class BaseTableEntry

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.BaseTableEntry
Direct Known Subclasses:
AclEntry, ForwardingEntry, NotificationLogEntry, NotificationVarbindEntry, TrapEntry, V3ForwardingEntry, VaclEntry

public abstract class BaseTableEntry
extends java.lang.Object
implements RowStatusHandlerInterface

The abstract class provides the common methods to all the entry files extending this. This class has methods for the RowStatus Handling. API users may not need this class.


Field Summary
 BaseSnmpAgent agentName
          The SnmpAgent associated with this entry.
protected  int[] instanceOID
          The instanceOid int[] format.
 
Constructor Summary
BaseTableEntry()
           
 
Method Summary
 int[] computeInstanceOID()
          Method to computeThe Instance OID.
 void decrementCount()
          This method reduces the column count by 1.
 java.util.Hashtable getAttributes(java.util.Enumeration enum)
          This method will be overridden in the generated Entry files to return the Hashtable which has the values of the coloumns in this Table
 int getCount()
          The method to get the column count.
 int[] getInstanceOID()
          Getter for the InstanceOID of this entry.
 void setAgentRef(BaseSnmpAgent agentRef)
          Setter for Agent Reference.
 void setCount(int count)
          Method to set the column count.
 void setInstanceOID(int[] instanceOID)
          Setter for the InstanceOID
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceOID

protected int[] instanceOID
The instanceOid int[] format.

agentName

public BaseSnmpAgent agentName
The SnmpAgent associated with this entry.
Constructor Detail

BaseTableEntry

public BaseTableEntry()
Method Detail

getInstanceOID

public int[] getInstanceOID()
Getter for the InstanceOID of this entry.
Returns:
the instanceOID int[]

setInstanceOID

public void setInstanceOID(int[] instanceOID)
Setter for the InstanceOID
Parameters:
instanceOID - the int[] to be set as the instanceOID

computeInstanceOID

public int[] computeInstanceOID()
Method to computeThe Instance OID. currently return a null.
Returns:
the instanceOID int[].
See Also:
AgentUtil.encodeInstanceString

getCount

public int getCount()
The method to get the column count.
Specified by:
getCount in interface RowStatusHandlerInterface
Returns:
the column count.

setCount

public void setCount(int count)
Method to set the column count.
Specified by:
setCount in interface RowStatusHandlerInterface
Parameters:
count - the coulmn count to be set.

decrementCount

public void decrementCount()
This method reduces the column count by 1.
Specified by:
decrementCount in interface RowStatusHandlerInterface

setAgentRef

public void setAgentRef(BaseSnmpAgent agentRef)
Setter for Agent Reference.
Parameters:
agentRef - the SnmpAgent instance.

getAttributes

public java.util.Hashtable getAttributes(java.util.Enumeration enum)
                                  throws java.lang.Exception
This method will be overridden in the generated Entry files to return the Hashtable which has the values of the coloumns in this Table
Parameters:
enum - Enumeration of Coloumns for which value is sought
Returns:
The Hashtable of Values of the Coloumns