com.adventnet.snmp.snmp2.agent
Class FileToVector

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.FileToVector
Direct Known Subclasses:
V3FileToVector

Deprecated. As now the XMLToVector persistency is used.

public class FileToVector
extends java.lang.Object
implements java.lang.Runnable, UpdateListener

The class which deals with the FileToVector persistence of the TrapTable Entries

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

Field Summary
(package private)  SimpleTrapForwardingTable handler
          Deprecated.  
(package private) static int ID
          Deprecated.  
(package private)  long lastModified
          Deprecated.  
(package private) static int MANAGERHOST
          Deprecated.  
(package private) static int MANAGERPORT
          Deprecated.  
(package private)  int refreshTime
          Deprecated.  
(package private) static int ROWSTATUS
          Deprecated.  
(package private)  java.util.Vector tableVector
          Deprecated.  
 
Constructor Summary
FileToVector()
          Deprecated. Primary Constructor
FileToVector(java.lang.String dirStr, java.lang.String fileName)
          Deprecated. Secondary constructor with directory name and fileName
 
Method Summary
 void initTableVector()
          Deprecated. Initializing the Table Entry Vector
 void refreshTrapTable(int refreshTime)
          Deprecated. Refreshing TrapTable in time
 void run()
          Deprecated. Thread's run method which refreshes the TrapTable
 void setForwardingTableRequestHandler(SimpleTrapForwardingTable handler)
          Deprecated. Setter for the Table Request Handler
 void writeIntoFile()
          Deprecated. Used to update values from the file
 
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. 

MANAGERHOST

static final int MANAGERHOST
Deprecated. 

MANAGERPORT

static final int MANAGERPORT
Deprecated. 

ROWSTATUS

static final int ROWSTATUS
Deprecated. 

tableVector

java.util.Vector tableVector
Deprecated. 

refreshTime

int refreshTime
Deprecated. 

lastModified

long lastModified
Deprecated. 

handler

SimpleTrapForwardingTable handler
Deprecated. 
Constructor Detail

FileToVector

public FileToVector()
Deprecated. 
Primary Constructor

FileToVector

public FileToVector(java.lang.String dirStr,
                    java.lang.String fileName)
Deprecated. 
Secondary constructor with directory name and fileName
Method Detail

initTableVector

public void initTableVector()
Deprecated. 
Initializing the Table Entry Vector

refreshTrapTable

public void refreshTrapTable(int refreshTime)
Deprecated. 
Refreshing TrapTable in time

run

public void run()
Deprecated. 
Thread's run method which refreshes the TrapTable
Specified by:
run in interface java.lang.Runnable

writeIntoFile

public void writeIntoFile()
Deprecated. 
Used to update values from the file
Specified by:
writeIntoFile in interface UpdateListener

setForwardingTableRequestHandler

public void setForwardingTableRequestHandler(SimpleTrapForwardingTable handler)
Deprecated. 
Setter for the Table Request Handler