com.adventnet.utils.agent
Class DynamicXMLToVector

java.lang.Object
  extended by com.adventnet.utils.agent.DynamicXMLToVector
All Implemented Interfaces:
UpdateListener, AgentEventListener

public class DynamicXMLToVector
extends java.lang.Object
implements UpdateListener

This class is used for the Persistence of the aProxyTable values. Used for Dynamic Registration of SubAgents.


Field Summary
(package private) static java.lang.String[] columnNames
           
(package private) static int PROXYCOMMUNITY
           
(package private) static int PROXYHOST
           
(package private) static int PROXYOID
           
(package private) static int PROXYPORTNUMBER
           
(package private) static int PROXYRETRIES
           
(package private) static int PROXYROWSTATUS
           
(package private) static int PROXYTIMEOUT
           
(package private) static int PROXYVERSION
           
 
Constructor Summary
DynamicXMLToVector(java.lang.String dirStr, java.lang.String fileStr)
          Primary constructor with directory name and file Name.
 
Method Summary
static int getColumnId(java.lang.String name)
          Getter for the column id for the column name.
 java.lang.String getColumnValue(DynamicRegistrationEntry entry, java.lang.String columnName)
          Getter of the column value in the entry for the given column name.
 void setFToVPersistence(boolean fToVPersistence)
          Setter for FToVPersistence.
 void setTableRequestHandler(DynamicRegistration handler)
          Setter for the Table Request handler.
 void writeIntoFile()
          Method to write the entries into the storage file with the specified format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROXYOID

static final int PROXYOID
See Also:
Constant Field Values

PROXYHOST

static final int PROXYHOST
See Also:
Constant Field Values

PROXYPORTNUMBER

static final int PROXYPORTNUMBER
See Also:
Constant Field Values

PROXYVERSION

static final int PROXYVERSION
See Also:
Constant Field Values

PROXYCOMMUNITY

static final int PROXYCOMMUNITY
See Also:
Constant Field Values

PROXYTIMEOUT

static final int PROXYTIMEOUT
See Also:
Constant Field Values

PROXYRETRIES

static final int PROXYRETRIES
See Also:
Constant Field Values

PROXYROWSTATUS

static final int PROXYROWSTATUS
See Also:
Constant Field Values

columnNames

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

DynamicXMLToVector

public DynamicXMLToVector(java.lang.String dirStr,
                          java.lang.String fileStr)
Primary constructor with directory name and file Name.

Parameters:
dirStr - The directory Name.
fileStr - The file Name.
Method Detail

getColumnId

public static int getColumnId(java.lang.String name)
Getter for the column id for the column name.

Parameters:
name - The column name.
Returns:
the subid of the column.

getColumnValue

public java.lang.String getColumnValue(DynamicRegistrationEntry entry,
                                       java.lang.String columnName)
Getter of the column value in the entry for the given column name.

Parameters:
entry - The DynamicRegistrationEntry, the row object.
columnName - The column name.
Returns:
the value of the column as a string.

writeIntoFile

public void writeIntoFile()
Method to write the entries into the storage file with the specified format.

Specified by:
writeIntoFile in interface UpdateListener

setTableRequestHandler

public void setTableRequestHandler(DynamicRegistration handler)
Setter for the Table Request handler.

Parameters:
handler - The RequestHandler for the Table which uses this UpdateListener to update the persistence file.

setFToVPersistence

public void setFToVPersistence(boolean fToVPersistence)
Setter for FToVPersistence.

Parameters:
fToVPersistence - The FToV Persistence flag.