com.adventnet.snmp.snmp2.agent
Class V3FileToVector

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.FileToVector
      extended by com.adventnet.snmp.snmp2.agent.V3FileToVector
All Implemented Interfaces:
UpdateListener, AgentEventListener, java.lang.Runnable

Deprecated. The persistence now uses XML format hence this class is deprecated.

public class V3FileToVector
extends FileToVector
implements UpdateListener

This class is used for the flatFile persistency of the Trap Table Entries. This class is deprecated since we use the V3XMLToVector instead

Since:
AdventNet Agent Toolkit (Java Edition) 4.2 release.
See Also:
V3XMLToVector

Field Summary
(package private)  SimpleTrapForwardingTable handler
          Deprecated.  
(package private) static int ID
          Deprecated.  
(package private) static int MANAGERHOST
          Deprecated.  
(package private) static int MANAGERPORT
          Deprecated.  
(package private) static int ROWSTATUS
          Deprecated.  
(package private)  java.util.Vector tableVector
          Deprecated.  
(package private) static int V3MANAGERUSERCONTEXTNAME
          Deprecated.  
(package private) static int V3MANAGERUSERNAME
          Deprecated.  
(package private) static int V3MANAGERUSERSECMODEL
          Deprecated.  
 
Fields inherited from class com.adventnet.snmp.snmp2.agent.FileToVector
lastModified, refreshTime
 
Constructor Summary
V3FileToVector(java.lang.String dirStr, java.lang.String fileName)
          Deprecated. Primary constructor with the directory Name and the file Name
 
Method Summary
 void run()
          Deprecated. Since the AdventNet Agent Toolkit (Java Edition) 4.2 release
 void setForwardingTableRequestHandler(SimpleTrapForwardingTable handler)
          Deprecated. Used to set the RequestHandler which will handle the requests and update the file values to the Handler files
 void writeIntoFile()
          Deprecated. Used to update values from the file
 
Methods inherited from class com.adventnet.snmp.snmp2.agent.FileToVector
initTableVector, refreshTrapTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

static final int ID
Deprecated. 
See Also:
Constant Field Values

MANAGERHOST

static final int MANAGERHOST
Deprecated. 
See Also:
Constant Field Values

MANAGERPORT

static final int MANAGERPORT
Deprecated. 
See Also:
Constant Field Values

V3MANAGERUSERNAME

static final int V3MANAGERUSERNAME
Deprecated. 
See Also:
Constant Field Values

V3MANAGERUSERSECMODEL

static final int V3MANAGERUSERSECMODEL
Deprecated. 
See Also:
Constant Field Values

V3MANAGERUSERCONTEXTNAME

static final int V3MANAGERUSERCONTEXTNAME
Deprecated. 
See Also:
Constant Field Values

ROWSTATUS

static final int ROWSTATUS
Deprecated. 
See Also:
Constant Field Values

tableVector

java.util.Vector tableVector
Deprecated. 

handler

SimpleTrapForwardingTable handler
Deprecated. 
Constructor Detail

V3FileToVector

public V3FileToVector(java.lang.String dirStr,
                      java.lang.String fileName)
Deprecated. 
Primary constructor with the directory Name and the file Name

Method Detail

writeIntoFile

public void writeIntoFile()
Deprecated. 
Used to update values from the file

Specified by:
writeIntoFile in interface UpdateListener
Overrides:
writeIntoFile in class FileToVector

setForwardingTableRequestHandler

public void setForwardingTableRequestHandler(SimpleTrapForwardingTable handler)
Deprecated. 
Used to set the RequestHandler which will handle the requests and update the file values to the Handler files

Overrides:
setForwardingTableRequestHandler in class FileToVector

run

public void run()
Deprecated. Since the AdventNet Agent Toolkit (Java Edition) 4.2 release

This method is deprecated since the refreshing the trapTable is deprecated

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class FileToVector