public class FtpFileEIConfigData extends DCNodeConfigData
ASCODEBASE, BACKUP, BULKIO, configFiles, DATAFILESIZE, DEBUG, dirtyFlag, EXPCHANOPERATOR, EXPCHANVALUE, EXPCHANVALUE2, FILELEVELTRANSACTION, INPUTMONTIME, INPUTMONTIMEUNIT, LOGFILESIZE, MONITORINPUT, NARBACKUP, NARBACKUPDAYS, nodeId, NUMCHANNELS, NUMEXPCHANVALUES, NUMEXPCHANVALUES2, PULLTIME, PUSHTIME, RECORDSTATS, ROUTING, ROUTINGATTRIBUTE, ruleName, rules, RULESFILE, secFileName, SECONDARYCFG, udcHome, useFile, varTable| Constructor and Description |
|---|
FtpFileEIConfigData()
Constructor to be used by GUI to create a DCNodeConfigData with
initial set of default values
|
FtpFileEIConfigData(java.lang.String inOSAHome,
java.lang.String inNodeId)
Constructor to be used by NodeManager which is aware of the
udcHome and nodeId
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getFtpConfigData()
Retrieves the ftp-specific data in order to pass it to
the Node Manager.
|
java.lang.String |
getFtpConfigFilename()
Retrieves the path and name of the ftp-specific configuration
file.
|
static java.lang.String |
getFtpConfigFilename(java.lang.String udcHome,
java.lang.String nodeId)
Get ftp configuration file absolute path
|
void |
load()
Overridden to not only load the general configuration info but also the
ftp-specific parameters.
|
void |
save()
Write out the node configuration data to files.
|
protected void |
setDefaults()
Not applicable.
|
void |
setFtpConfigData(byte[] data)
Stores the ftp-specific parameters for use by the appropriate
GUI panels.
|
void |
setFtpConfigFilename(java.lang.String path)
Sets the path and name of the ftp-specific config file.
|
clone, defaultValue, deleteItem, equals, getConfigDir, getConfigFile, getConfigFileNames, getDirty, getGenConfigFilePathName, getHomeDir, getItem, getNodeId, getPreferredRules, getPrefRulesFilePathName, getRuleClass, getRuleFilePathName, getRuleName, getRules, getSettingsKeys, getUseFile, readConfigFiles, readFile, setBaseDefaults, setConfigFile, setDirty, setHomeDir, setItem, setNodeId, setPreferredRules, setRuleClass, setRuleFileName, setRuleFilePathName, setRules, setRulesFromClass, setRulesFromClass, setRulesFromFile, setUseFile, toString, writeConfigFiles, writeFilepublic FtpFileEIConfigData()
public FtpFileEIConfigData(java.lang.String inOSAHome,
java.lang.String inNodeId)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getFtpConfigFilename(java.lang.String udcHome,
java.lang.String nodeId)
UDC - home directorynode - id stringpublic void setFtpConfigData(byte[] data)
data - Array of bytes representing the ftp-specific datapublic byte[] getFtpConfigData()
public java.lang.String getFtpConfigFilename()
java.io.IOException - If any I/O errors occur.public void setFtpConfigFilename(java.lang.String path)
path - contains the path and filenameprotected void setDefaults()
setDefaults in class DCNodeConfigDatapublic void load()
throws java.io.IOException
load in class DCNodeConfigDatajava.io.IOException - If either the general.cfg or ruleName file
could not be readpublic void save()
throws java.io.IOException
save in class DCNodeConfigDatajava.io.IOException - If the config directory does not exist, or either the
general.cfg or rules.cfg file could not be written to