com.adventnet.utils.agent
Class DynamicXMLToVector

java.lang.Object
  |
  +--com.adventnet.utils.agent.DynamicXMLToVector

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

PROXYHOST

static final int PROXYHOST

PROXYPORTNUMBER

static final int PROXYPORTNUMBER

PROXYVERSION

static final int PROXYVERSION

PROXYCOMMUNITY

static final int PROXYCOMMUNITY

PROXYTIMEOUT

static final int PROXYTIMEOUT

PROXYRETRIES

static final int PROXYRETRIES

PROXYROWSTATUS

static final int PROXYROWSTATUS

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.