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.
|
Constructor Summary |
DynamicXMLToVector(java.lang.String dirStr,
java.lang.String fileStr)
Primary constructor with directory name and file Name. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
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.
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.