com.adventnet.snmp.snmp2.agent
Class AclTableFileToVector

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.AclTableFileToVector

class AclTableFileToVector
extends java.lang.Object
implements UpdateListener

Class to store the AclTable Entries. This takes care of both XML and Text File storage.


Field Summary
(package private) static int ACLACCESS
           
(package private) static int ACLCOMMUNITY
           
(package private) static int ACLMANAGERS
           
(package private) static int ACLSTATUS
           
(package private) static java.lang.String[] columnNames
           
(package private)  java.lang.String fieldSeparator
           
(package private)  AclTableRequestHandler handler
           
(package private)  AclTable table
           
 
Constructor Summary
AclTableFileToVector(SnmpAgent agentRef, AclTable table, boolean persistence, java.lang.String fileName)
           
AclTableFileToVector(java.lang.String dirStr, java.lang.String fileName, SnmpAgent agentRef)
           
 
Method Summary
static int getColumnId(java.lang.String name)
           
 java.lang.String getColumnValue(AclEntryInterface entry, java.lang.String columnName)
           
 java.lang.String getFileStr()
           
 void readFromFile()
           
 void readFromFToVFile()
           
 void setFieldSeparator(java.lang.String sep)
           
 void setFToVPersistence(boolean fToVPersistence)
           
 void setTableRequestHandler(AclTableRequestHandler handler)
          Setter for Handler reference to update the information readFromFile.
 void writeIntoFile()
          This will be especially useful in writing the entry values of the table in a file.
 void writeIntoFToVFile()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACLCOMMUNITY

static final int ACLCOMMUNITY

ACLACCESS

static final int ACLACCESS

ACLMANAGERS

static final int ACLMANAGERS

ACLSTATUS

static final int ACLSTATUS

columnNames

static final java.lang.String[] columnNames

fieldSeparator

java.lang.String fieldSeparator

handler

AclTableRequestHandler handler

table

AclTable table
Constructor Detail

AclTableFileToVector

public AclTableFileToVector(java.lang.String dirStr,
                            java.lang.String fileName,
                            SnmpAgent agentRef)

AclTableFileToVector

public AclTableFileToVector(SnmpAgent agentRef,
                            AclTable table,
                            boolean persistence,
                            java.lang.String fileName)
Method Detail

getColumnId

public static int getColumnId(java.lang.String name)

getColumnValue

public java.lang.String getColumnValue(AclEntryInterface entry,
                                       java.lang.String columnName)

setFieldSeparator

public void setFieldSeparator(java.lang.String sep)

readFromFile

public void readFromFile()
                  throws java.lang.Exception

writeIntoFile

public void writeIntoFile()
Description copied from interface: UpdateListener
This will be especially useful in writing the entry values of the table in a file.
Specified by:
writeIntoFile in interface UpdateListener

setTableRequestHandler

public void setTableRequestHandler(AclTableRequestHandler handler)
Setter for Handler reference to update the information readFromFile.

setFToVPersistence

public void setFToVPersistence(boolean fToVPersistence)

readFromFToVFile

public void readFromFToVFile()
                      throws java.lang.Exception

writeIntoFToVFile

public void writeIntoFToVFile()

getFileStr

public java.lang.String getFileStr()