com.adventnet.snmp.snmp2.agent
Class TrapTableXMLToVector

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

 class TrapTableXMLToVector
extends java.lang.Object
implements UpdateListener


Field Summary
(package private) static int AGENTCOMMUNITY
           
(package private) static int AGENTHOST
           
(package private) static int AGENTHOSTTYPE
           
(package private) static int AGENTSTATUS
           
(package private) static int AGENTTRAPPORTNUMBER
           
(package private) static java.lang.String[] columnNames
           
 
Constructor Summary
TrapTableXMLToVector(java.lang.String dirStr, java.lang.String fileName, SnmpAgent agentRef)
           
TrapTableXMLToVector(java.lang.String dirStr, java.lang.String fileName, SnmpAgent agentRef, boolean fToVPersistence)
           
 
Method Summary
static int getColumnId(java.lang.String name)
           
 java.lang.String getColumnValue(TrapEntry entry, java.lang.String columnName)
           
 void readFromFile()
           
 void setTableRequestHandler(TrapTableRequestHandler 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

AGENTHOSTTYPE

static final int AGENTHOSTTYPE
See Also:
Constant Field Values

AGENTHOST

static final int AGENTHOST
See Also:
Constant Field Values

AGENTTRAPPORTNUMBER

static final int AGENTTRAPPORTNUMBER
See Also:
Constant Field Values

AGENTCOMMUNITY

static final int AGENTCOMMUNITY
See Also:
Constant Field Values

AGENTSTATUS

static final int AGENTSTATUS
See Also:
Constant Field Values

columnNames

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

TrapTableXMLToVector

public TrapTableXMLToVector(java.lang.String dirStr,
                            java.lang.String fileName,
                            SnmpAgent agentRef)

TrapTableXMLToVector

public TrapTableXMLToVector(java.lang.String dirStr,
                            java.lang.String fileName,
                            SnmpAgent agentRef,
                            boolean fToVPersistence)
Method Detail

getColumnId

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

getColumnValue

public java.lang.String getColumnValue(TrapEntry 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(TrapTableRequestHandler handler)