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.
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
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)
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()