com.adventnet.snmp.snmp2.agent.usm
Class UsmUserTableXMLToVector

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.usm.UsmUserTableXMLToVector
All Implemented Interfaces:
UpdateListener, AgentEventListener

 class UsmUserTableXMLToVector
extends java.lang.Object
implements UpdateListener


Field Summary
(package private) static java.lang.String[] columnNames
           
(package private) static int USMUSERAUTHKEY
           
(package private) static int USMUSERAUTHPASSWORD
           
(package private) static int USMUSERAUTHPROTOCOL
           
(package private) static int USMUSERCLONEFROM
           
(package private) static int USMUSERPRIVKEY
           
(package private) static int USMUSERPRIVPASSWORD
           
(package private) static int USMUSERPRIVPROTOCOL
           
(package private) static int USMUSERPUBLIC
           
(package private) static int USMUSERSECURITYLEVEL
           
(package private) static int USMUSERSECURITYNAME
           
(package private) static int USMUSERSTATUS
           
(package private) static int USMUSERSTORAGETYPE
           
 
Constructor Summary
UsmUserTableXMLToVector(java.lang.String dirStr, java.lang.String fileName, UsmUserTableRequestHandler handler)
           
 
Method Summary
static int getColumnId(java.lang.String name)
           
 java.lang.Object getColumnValue(USMUserEntry entry, java.lang.String columnName)
           
 void readFromFile()
           
 void setTableRequestHandler(UsmUserTableRequestHandler handler)
           
 void writeIntoFile()
          This will be especially useful in writing the entry values of the table in a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USMUSERSECURITYNAME

static final int USMUSERSECURITYNAME
See Also:
Constant Field Values

USMUSERSECURITYLEVEL

static final int USMUSERSECURITYLEVEL
See Also:
Constant Field Values

USMUSERCLONEFROM

static final int USMUSERCLONEFROM
See Also:
Constant Field Values

USMUSERAUTHPROTOCOL

static final int USMUSERAUTHPROTOCOL
See Also:
Constant Field Values

USMUSERPRIVPROTOCOL

static final int USMUSERPRIVPROTOCOL
See Also:
Constant Field Values

USMUSERPUBLIC

static final int USMUSERPUBLIC
See Also:
Constant Field Values

USMUSERAUTHPASSWORD

static final int USMUSERAUTHPASSWORD
See Also:
Constant Field Values

USMUSERAUTHKEY

static final int USMUSERAUTHKEY
See Also:
Constant Field Values

USMUSERPRIVPASSWORD

static final int USMUSERPRIVPASSWORD
See Also:
Constant Field Values

USMUSERPRIVKEY

static final int USMUSERPRIVKEY
See Also:
Constant Field Values

USMUSERSTORAGETYPE

static final int USMUSERSTORAGETYPE
See Also:
Constant Field Values

USMUSERSTATUS

static final int USMUSERSTATUS
See Also:
Constant Field Values

columnNames

static final java.lang.String[] columnNames
Constructor Detail

UsmUserTableXMLToVector

public UsmUserTableXMLToVector(java.lang.String dirStr,
                               java.lang.String fileName,
                               UsmUserTableRequestHandler handler)
Method Detail

getColumnId

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

getColumnValue

public java.lang.Object getColumnValue(USMUserEntry entry,
                                       java.lang.String columnName)

readFromFile

public void readFromFile()
                  throws java.lang.Exception
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(UsmUserTableRequestHandler handler)