|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.VaclTableXMLToVector
public class VaclTableXMLToVector
| Field Summary | |
|---|---|
(package private) static int |
ACLCOMMUNITY
|
(package private) static java.lang.String[] |
columnNames
|
(package private) VaclTableRequestHandler |
handler
|
(package private) static int |
MIBVIEWS
|
(package private) VaclTable |
table
|
(package private) static int |
VIEWSTATUS
|
| 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 |
|
| Method Summary | |
|---|---|
static int |
getColumnId(java.lang.String name)
Gives the Column id for the Column Name. |
java.lang.String |
getColumnValue(VaclEntry entry,
java.lang.String columnName)
Gets the Column value for this Column Name in the Entry. |
void |
readFromFile()
This method is used to read from the file and populate the Table. |
(package private) void |
setFToVPersistence(boolean fToVPersistence)
|
void |
setTableRequestHandler(VaclTableRequestHandler handler)
Sets the Table Request Handler to which the XMLToVector populates the Table Values. |
void |
writeIntoFile()
From the interface UpdateListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int ACLCOMMUNITY
static final int MIBVIEWS
static final int VIEWSTATUS
static final java.lang.String[] columnNames
VaclTableRequestHandler handler
VaclTable table
| Constructor Detail |
|---|
public VaclTableXMLToVector(java.lang.String dirStr,
java.lang.String fileName,
SnmpAgent agentRef)
dirStr - the directory location of the storage file.fileName - the fileName.agentRef - the SnmpAgent reference.
public VaclTableXMLToVector(SnmpAgent agentRef,
VaclTable vacl,
boolean ftv,
java.lang.String fileName)
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.| Method Detail |
|---|
public static int getColumnId(java.lang.String name)
name - The Column Name.
public java.lang.String getColumnValue(VaclEntry entry,
java.lang.String columnName)
entry - The Entry for which the column value is neededcolumnName - The columnName of the value needed
public void readFromFile()
throws java.lang.Exception
on - Error while reading from file.
java.lang.Exceptionpublic void writeIntoFile()
writeIntoFile in interface UpdateListenerpublic void setTableRequestHandler(VaclTableRequestHandler handler)
handler - The Table Handler which handles the Get, GetNext and Set Requests.void setFToVPersistence(boolean fToVPersistence)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||