com.adventnet.snmp.snmp2.agent
Class SysOREntry

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.SysOREntry
All Implemented Interfaces:
TableEntry

public class SysOREntry
extends java.lang.Object
implements TableEntry

Contains the data handling under sysOREntry group


Field Summary
(package private)  BaseSnmpAgent agentName
           
protected  int[] instanceOID
          The Instance OID int[] for this entry.
protected  java.lang.String sysORDescr
          The SysORDescr value
protected  java.lang.String sysORID
          The SysORID value
protected  java.lang.Integer sysORIndex
          The Index variable
protected  java.lang.Long sysORUpTime
          The SysORUpTime value
 
Constructor Summary
SysOREntry()
           
 
Method Summary
 int[] computeInstanceOID()
          Implementaion of TableEntry Interface
 void decrementCount()
          This method reduces the column count by 1.
 int getCount()
          The method to get the column count.
 int[] getInstanceOID()
          Part of interface TableEntry
 java.lang.String getSysORDescr()
          Handles the SNMP Get Request for sysORDescr
 java.lang.String getSysORID()
          Handles the SNMP Get Request for sysORID
 java.lang.Long getSysORUpTime()
          Handles the SNMP Get Request for sysORUpTime
 void setAgentRef(BaseSnmpAgent agentRef)
          Method to set the SnmpAgent reference to this entry.
 void setInstanceOID(int[] instanceOID)
          Part of interface TableEntry set the instanceOID
 void setSysORDescr(java.lang.String value)
          Handles the SNMP Set Request for sysORDescr
 void setSysORID(java.lang.String value)
          Handles the SNMP Set Request for sysORID
 void setSysORIndex(java.lang.Integer value)
          Handles the SNMP Set Request for sysORIndex
 void setSysORUpTime(java.lang.Long value)
          Handles the SNMP Set Request for sysORUpTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sysORIndex

protected java.lang.Integer sysORIndex
The Index variable


sysORID

protected java.lang.String sysORID
The SysORID value


sysORDescr

protected java.lang.String sysORDescr
The SysORDescr value


sysORUpTime

protected java.lang.Long sysORUpTime
The SysORUpTime value


agentName

BaseSnmpAgent agentName

instanceOID

protected int[] instanceOID
The Instance OID int[] for this entry.

Constructor Detail

SysOREntry

public SysOREntry()
Method Detail

setAgentRef

public void setAgentRef(BaseSnmpAgent agentRef)
Method to set the SnmpAgent reference to this entry.

Parameters:
agentRef - the SnmpAgent Reference.

getInstanceOID

public int[] getInstanceOID()
Part of interface TableEntry

Specified by:
getInstanceOID in interface TableEntry
Returns:
The instance oid of this entry.

setInstanceOID

public void setInstanceOID(int[] instanceOID)
Part of interface TableEntry set the instanceOID

Specified by:
setInstanceOID in interface TableEntry
Parameters:
instanceOID - The Value of the InstanceaOOD to set.

computeInstanceOID

public int[] computeInstanceOID()
Implementaion of TableEntry Interface

Specified by:
computeInstanceOID in interface TableEntry
Returns:
null by default.
See Also:
AgentUtil.encodeInstanceString

decrementCount

public void decrementCount()
This method reduces the column count by 1.


getCount

public int getCount()
The method to get the column count.

Returns:
the column count.

setSysORIndex

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

Parameters:
value - The Integer index
Throws:
AgentException - on error

getSysORID

public java.lang.String getSysORID()
                            throws AgentException
Handles the SNMP Get Request for sysORID

Returns:
The SysORID String.
Throws:
AgentException - on error

setSysORID

public void setSysORID(java.lang.String value)
                throws AgentException
Handles the SNMP Set Request for sysORID

Parameters:
value - The SysORID String value to be set
Throws:
AgentException - on error

getSysORDescr

public java.lang.String getSysORDescr()
                               throws AgentException
Handles the SNMP Get Request for sysORDescr

Returns:
The SysORDescr String
Throws:
AgentException - on error

setSysORDescr

public void setSysORDescr(java.lang.String value)
                   throws AgentException
Handles the SNMP Set Request for sysORDescr

Parameters:
value - The SysORDescr String to be set
Throws:
AgentException - on error

getSysORUpTime

public java.lang.Long getSysORUpTime()
                              throws AgentException
Handles the SNMP Get Request for sysORUpTime

Returns:
The sysORUpTime value
Throws:
AgentException - on error

setSysORUpTime

public void setSysORUpTime(java.lang.Long value)
                    throws AgentException
Handles the SNMP Set Request for sysORUpTime

Parameters:
value - The sysORUpTime Long to be set
Throws:
AgentException - on error