|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.XMLToVector
com.adventnet.snmp.snmp2.agent.V3XMLToVector
public class V3XMLToVector
This class contains the Persistency data handling of the V3TrapForwardingTable
| Field Summary | |
|---|---|
(package private) static java.lang.String[] |
columnNames
The static names of the columns |
(package private) static int |
MANAGERCOMMUNITY
|
(package private) static int |
MANAGERHOST
|
(package private) static int |
MANAGERPORT
|
(package private) static int |
MANAGERRETRIES
|
(package private) static int |
MANAGERTIMEOUT
|
(package private) static int |
MANAGERVERSION
|
(package private) static int |
ROWSTATUS
|
(package private) static int |
V3MANAGERHOSTTYPE
Static ints of the column subids |
(package private) static int |
V3MANAGERUSERCONTEXTNAME
|
(package private) static int |
V3MANAGERUSERNAME
|
(package private) static int |
V3MANAGERUSERSECMODEL
|
(package private) static int |
V3SECURITYLEVEL
|
(package private) V3ForwardingTable |
v3Table
|
| Fields inherited from class com.adventnet.snmp.snmp2.agent.XMLToVector |
|---|
COMMUNITY, fieldSeparator, forTable, fToVPersistence, handler, lastModified, MANAGERHOSTTYPE, name, refreshTime, RETRIES, tableVector, TIMEOUT, VERSION |
| Constructor Summary | |
|---|---|
V3XMLToVector(java.lang.String dirStr,
java.lang.String fileName)
This is the primary constructor with speification of directory name and fileName |
|
V3XMLToVector(java.lang.String dirStr,
java.lang.String fileName,
V3ForwardingTable table,
boolean ftv)
This constructor with speification of directory name, fileName, V3ForwardingTable and the Storage Type. |
|
| Method Summary | |
|---|---|
static int |
getColumnId(java.lang.String name)
The static method returning the column name's column subid |
java.lang.String |
getColumnValue(V3ForwardingEntry entry,
java.lang.String columnName)
This mehod returns the Column value for the specified Entry |
protected void |
readFromFile()
The method parses the Entry objects from the persistence file in the fileSystem |
void |
run()
This is the actual run method of the Thread used for refreshing the V3TrapForwardingTable |
void |
setForwardingTableRequestHandler(SimpleTrapForwardingTable handler)
The method to set the V3SimpleTrapForwardingTable |
void |
writeIntoFile()
The method writes the Entry objects into the file in specified Format |
| Methods inherited from class com.adventnet.snmp.snmp2.agent.XMLToVector |
|---|
getColumnValue, initTableVector, refreshTrapTable, setFToVPersistence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int V3MANAGERHOSTTYPE
static final int MANAGERHOST
static final int MANAGERPORT
static final int MANAGERVERSION
static final int MANAGERCOMMUNITY
static final int V3MANAGERUSERNAME
static final int V3MANAGERUSERSECMODEL
static final int V3SECURITYLEVEL
static final int V3MANAGERUSERCONTEXTNAME
static final int MANAGERTIMEOUT
static final int MANAGERRETRIES
static final int ROWSTATUS
static final java.lang.String[] columnNames
V3ForwardingTable v3Table
| Constructor Detail |
|---|
public V3XMLToVector(java.lang.String dirStr,
java.lang.String fileName)
dirStr - the directory location of the storage file.fileName - the fileName.
public V3XMLToVector(java.lang.String dirStr,
java.lang.String fileName,
V3ForwardingTable table,
boolean ftv)
dirStr - the directory location of the storage file.fileName - the fileName.table - the V3ForwardingTable whose entries are to be stored.ftv - boolean to specify text or xml format true for text format.| Method Detail |
|---|
public static int getColumnId(java.lang.String name)
name - the Column Name
public java.lang.String getColumnValue(V3ForwardingEntry entry,
java.lang.String columnName)
entry - The Entry for which the column value is neededcolumnName - The columnName of the value needed
protected void readFromFile()
throws java.lang.Exception
readFromFile in class XMLToVectorjava.lang.Exception - on errorpublic void writeIntoFile()
writeIntoFile in interface UpdateListenerwriteIntoFile in class XMLToVectorpublic void setForwardingTableRequestHandler(SimpleTrapForwardingTable handler)
setForwardingTableRequestHandler in class XMLToVectorhandler - The SimpleTrapForwardingTable handler for this class.public void run()
run in interface java.lang.Runnablerun in class XMLToVector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||