com.adventnet.snmp.snmp2.agent
Class VaclTableXMLToVector
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.VaclTableXMLToVector
- public class VaclTableXMLToVector
- extends java.lang.Object
- implements UpdateListener
|
Constructor Summary |
VaclTableXMLToVector(SnmpAgent agentRef,
VaclTable vacl,
boolean ftv,
java.lang.String fileName)
This constructor with specification of SnmpAgent, VaclTable, fileName
and the Storage Type. |
VaclTableXMLToVector(java.lang.String dirStr,
java.lang.String fileName,
SnmpAgent agentRef)
This is the primary constructor with speification of directory name and
fileName |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ACLCOMMUNITY
static final int ACLCOMMUNITY
MIBVIEWS
static final int MIBVIEWS
VIEWSTATUS
static final int VIEWSTATUS
columnNames
static final java.lang.String[] columnNames
handler
VaclTableRequestHandler handler
table
VaclTable table
VaclTableXMLToVector
public VaclTableXMLToVector(java.lang.String dirStr,
java.lang.String fileName,
SnmpAgent agentRef)
- This is the primary constructor with speification of directory name and
fileName
- Parameters:
dirStr - the directory location of the storage file.fileName - the fileName.agentRef - the SnmpAgent reference.
VaclTableXMLToVector
public VaclTableXMLToVector(SnmpAgent agentRef,
VaclTable vacl,
boolean ftv,
java.lang.String fileName)
- This constructor with specification of SnmpAgent, VaclTable, fileName
and the Storage Type.
- Parameters:
agentRef - the SnmpAgent reference.vacl - the VaclTable whose entries are to be stored.ftv - boolean to specify text or xml format true for text format.fileName - the fileName.
getColumnId
public static int getColumnId(java.lang.String name)
- Gives the Column id for the Column Name.
- Parameters:
name - The Column Name.- Returns:
- -1 if the Column Name is not in this Table.
getColumnValue
public java.lang.String getColumnValue(VaclEntry entry,
java.lang.String columnName)
- Gets the Column value for this Column Name in the Entry.
- Parameters:
entry - The Entry for which the column value is neededcolumnName - The columnName of the value needed- Returns:
- The value of the columnName in the given Entry
readFromFile
public void readFromFile()
throws java.lang.Exception
- This method is used to read from the file and populate the Table.
- Throws:
- on - Error while reading from file.
writeIntoFile
public void writeIntoFile()
- From the interface UpdateListener.
Writes the data into the file.
- Specified by:
- writeIntoFile in interface UpdateListener
setTableRequestHandler
public void setTableRequestHandler(VaclTableRequestHandler handler)
- Sets the Table Request Handler to which the XMLToVector populates the Table Values.
- Parameters:
handler - The Table Handler which handles the Get, GetNext and Set Requests.
setFToVPersistence
void setFToVPersistence(boolean fToVPersistence)