Package com.nt.udc.ei.node.ftpei
Class FtpFileEIConfigData
java.lang.Object
com.nt.udc.ndk.gui.DCNodeConfigData
com.nt.udc.ei.node.ftpei.FtpFileEIConfigData
- All Implemented Interfaces:
ConfigIfc
,Serializable
,Cloneable
Manages the configuration information for an FtpFileEINode
object. This new class exists in order to handle a separate
ftp-specific configuration file that's needed for this type
of EI node.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.nt.udc.ndk.gui.DCNodeConfigData
ASCODEBASE, BACKUP, BULKIO, configFiles, DATAFILESIZE, DEBUG, DEVICE_LIST_V1, 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, VOIP_EI_SMDR
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor to be used by GUI to create a DCNodeConfigData with initial set of default valuesFtpFileEIConfigData
(String inOSAHome, String inNodeId) Constructor to be used by NodeManager which is aware of the udcHome and nodeId -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Retrieves the ftp-specific data in order to pass it to the Node Manager.Retrieves the path and name of the ftp-specific configuration file.static String
getFtpConfigFilename
(String udcHome, String nodeId) Get ftp configuration file absolute pathvoid
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
Not applicable.void
setFtpConfigData
(byte[] data) Stores the ftp-specific parameters for use by the appropriate GUI panels.void
setFtpConfigFilename
(String path) Sets the path and name of the ftp-specific config file.Methods inherited from class com.nt.udc.ndk.gui.DCNodeConfigData
addDeviceListPasswordToWallet, clone, defaultValue, deleteItem, equals, getBackupDir, getConfigDir, getConfigFile, getConfigFileNames, getDirty, getGenConfigFilePathName, getHomeDir, getItem, getNodeId, getPreferredRules, getPrefRulesFilePathName, getRuleClass, getRuleFilePathName, getRuleName, getRules, getSettingsKeys, getUseFile, load, readConfigFiles, readFile, setBaseDefaults, setConfigFile, setDirty, setHomeDir, setItem, setNodeId, setPreferredRules, setRuleClass, setRuleFileName, setRuleFilePathName, setRules, setRulesFromClass, setRulesFromClass, setRulesFromFile, setUseFile, toString, writeConfigFiles, writeDefaultFields, writeFile
-
Field Details
-
NUMBER_OF_HOSTS
- See Also:
-
DELAY_TIME
- See Also:
-
INTERRUPT_TIME_DELAY
- See Also:
-
DELAY_TIME_UNITS
- See Also:
-
DELETE_FILES
- See Also:
-
RENAME_FILES
- See Also:
-
FTP_TYPE
- See Also:
-
REMOTE_HOST
- See Also:
-
REMOTE_DIR
- See Also:
-
PATTERN_MODE
- See Also:
-
PREFIX
- See Also:
-
SUFFIX
- See Also:
-
REGEXP
- See Also:
-
LOGIN
- See Also:
-
PASSWRD
- See Also:
-
REMOTE_FILE
- See Also:
-
FTP_TYPE_REGULAR
- See Also:
-
FTP_TYPE_SECURE
- See Also:
-
FTP_TYPE_PASSIVE
- See Also:
-
-
Constructor Details
-
FtpFileEIConfigData
public FtpFileEIConfigData()Constructor to be used by GUI to create a DCNodeConfigData with initial set of default values -
FtpFileEIConfigData
Constructor to be used by NodeManager which is aware of the udcHome and nodeId- Throws:
IOException
-
-
Method Details
-
getFtpConfigFilename
Get ftp configuration file absolute path- Parameters:
UDC
- home directorynode
- id string- Returns:
- String representing ftp filename
-
setFtpConfigData
public void setFtpConfigData(byte[] data) Stores the ftp-specific parameters for use by the appropriate GUI panels.- Parameters:
data
- Array of bytes representing the ftp-specific data
-
getFtpConfigData
public byte[] getFtpConfigData()Retrieves the ftp-specific data in order to pass it to the Node Manager.- Returns:
- Array of bytes representing the ftp parameters
-
getFtpConfigFilename
Retrieves the path and name of the ftp-specific configuration file.- Returns:
- String representing path and filename.
- Throws:
IOException
- If any I/O errors occur.
-
setFtpConfigFilename
Sets the path and name of the ftp-specific config file.- Parameters:
path
- contains the path and filename
-
setDefaults
protected void setDefaults()Not applicable.- Overrides:
setDefaults
in classDCNodeConfigData
-
load
Overridden to not only load the general configuration info but also the ftp-specific parameters.- Overrides:
load
in classDCNodeConfigData
- Throws:
IOException
- If either the general.cfg orruleName
file could not be read
-
save
Write out the node configuration data to files. Overridden to make sure we write the ftp-specific parameters to a separate file.- Overrides:
save
in classDCNodeConfigData
- Throws:
IOException
- If the config directory does not exist, or either the general.cfg or rules.cfg file could not be written to
-