com.adventnet.snmp.snmp2.agent
Class SysORTableRequestHandler

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
        |
        +--com.adventnet.snmp.snmp2.agent.BaseSysORTableRequestHandler
              |
              +--com.adventnet.snmp.snmp2.agent.SysORTableRequestHandler

public class SysORTableRequestHandler
extends BaseSysORTableRequestHandler

Handles all requests under sysORTable group


Field Summary
(package private)  SnmpAgent agentName
           
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.BaseSysORTableRequestHandler
agentName, atomicTable, descr, index, Oid, SYSORDESCR, SYSORID, SYSORINDEX, SYSORUPTIME, tModelComplete
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
instrumentHandler, listener, tableListener, writeEachTime
 
Constructor Summary
SysORTableRequestHandler(SnmpAgent agentRef, boolean persistence)
          Constructor to specify persistence flag
SysORTableRequestHandler(SnmpAgent agentRef, java.lang.String tableDirectory, java.lang.String tableName)
          Constructor where the directory and table file name can be customised by the user
SysORTableRequestHandler(SnmpAgent agentRef, java.lang.String tableDirectory, java.lang.String tableName, boolean fToVPersistence)
          Constructor where the directory and table file name can be customised by the user
 
Method Summary
 java.lang.String getSysORTableDirectoryName()
          Getter for SysORTableDirectoryName
 java.lang.String getSysORTableName()
          Getter for SysORTableName
 void initTableVector()
           
 boolean isPersistence()
          Getter for persistence of sysORTable in fileSystem
 void setFToVPersistence(boolean fToVPersistence)
          Setter for FToV Persistence flag.
 void setPersistence(boolean flag)
          Setter for persistence of sysORTable in fileSystem
 void setSysORTableDirectoryName(java.lang.String tableDirectory)
          Setter for SysORTableDirectoryName
 void setSysORTableName(java.lang.String tableName)
          Setter for SysORTableName
 void setTableVector(java.util.Vector tableVector)
          Setter for the Table Entries for sysORTable
 
Methods inherited from class com.adventnet.snmp.snmp2.agent.BaseSysORTableRequestHandler
createLogger, createSysOREntry, getAgentTableModel, getOidRep, getSubidList, getSysORTableOidRep, getTableVector, processGetNextRequest, processGetRequest, processGetRequest, processSetRequest
 
Methods inherited from class com.adventnet.snmp.snmp2.agent.SimpleRequestHandler
addInstrumentHandler, addRegistrationListener, addTableListener, addUpdateListener, getInstrument, getMibVarHash, getNextRequest, getObjectHash, getObjectTypeHash, getRequest, getTableListener, isWriteEachTime, processGetNextRequest, processGetRequest, 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

SnmpAgent agentName
Constructor Detail

SysORTableRequestHandler

public SysORTableRequestHandler(SnmpAgent agentRef,
                                boolean persistence)
Constructor to specify persistence flag
Parameters:
agentRef - The Agent Reference of the running Agent
persistence - The persistence flag

SysORTableRequestHandler

public SysORTableRequestHandler(SnmpAgent agentRef,
                                java.lang.String tableDirectory,
                                java.lang.String tableName)
Constructor where the directory and table file name can be customised by the user
Parameters:
agentRef - The Agent Reference of the running Agent
tableDirectory - The directory where the fileSystem stores the table file
tableName - The file Name in which the fileSystem stores the Table Entries

SysORTableRequestHandler

public SysORTableRequestHandler(SnmpAgent agentRef,
                                java.lang.String tableDirectory,
                                java.lang.String tableName,
                                boolean fToVPersistence)
Constructor where the directory and table file name can be customised by the user
Parameters:
agentRef - The Agent Reference of the running Agent
tableDirectory - The directory where the fileSystem stores the table file
tableName - The file Name in which the fileSystem stores the Table Entries
fToVPersistence - The flag for FToVPersistence.
Method Detail

setSysORTableName

public void setSysORTableName(java.lang.String tableName)
Setter for SysORTableName
Parameters:
tableName - specifies the name of the Table file in the fileSystem.
See Also:
getSysORTableName()

getSysORTableName

public java.lang.String getSysORTableName()
Getter for SysORTableName
Returns:
The name of the Table file in the fileSystem.
See Also:
setSysORTableName(String tableName)

setSysORTableDirectoryName

public void setSysORTableDirectoryName(java.lang.String tableDirectory)
Setter for SysORTableDirectoryName
Parameters:
tableDirectory - specifies the directory where the table file is stored in the fileSystem.
See Also:
getSysORTableDirectoryName()

getSysORTableDirectoryName

public java.lang.String getSysORTableDirectoryName()
Getter for SysORTableDirectoryName
Returns:
The name of the directory where the table file is stored in the fileSystem.
See Also:
setSysORTableDirectoryName(String tableDirectory)

initTableVector

public void initTableVector()

setTableVector

public void setTableVector(java.util.Vector tableVector)
Setter for the Table Entries for sysORTable
Overrides:
setTableVector in class BaseSysORTableRequestHandler
Parameters:
tableVector - The Vector of SysOREntry objects.
See Also:
BaseSysORTableRequestHandler.getTableVector()

setPersistence

public void setPersistence(boolean flag)
Setter for persistence of sysORTable in fileSystem
Parameters:
flag - The flag specifying the persistence
See Also:
isPersistence()

isPersistence

public boolean isPersistence()
Getter for persistence of sysORTable in fileSystem
Returns:
The flag specifying the persistence
See Also:
setPersistence(boolean flag)

setFToVPersistence

public void setFToVPersistence(boolean fToVPersistence)
Setter for FToV Persistence flag.
Parameters:
fToVPersistence - The FToV Persistence flag.