Class FtpFileEIConfigData

java.lang.Object
com.nt.udc.ndk.gui.DCNodeConfigData
com.nt.udc.ei.node.ftpei.FtpFileEIConfigData
All Implemented Interfaces:
ConfigIfc, Serializable, Cloneable

public class FtpFileEIConfigData extends DCNodeConfigData
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 Details

  • Constructor Details

    • FtpFileEIConfigData

      public FtpFileEIConfigData()
      Constructor to be used by GUI to create a DCNodeConfigData with initial set of default values
    • FtpFileEIConfigData

      public FtpFileEIConfigData(String inOSAHome, String inNodeId) throws IOException
      Constructor to be used by NodeManager which is aware of the udcHome and nodeId
      Throws:
      IOException
  • Method Details

    • getFtpConfigFilename

      public static String getFtpConfigFilename(String udcHome, String nodeId)
      Get ftp configuration file absolute path
      Parameters:
      UDC - home directory
      node - 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

      public String 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

      public void setFtpConfigFilename(String path)
      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 class DCNodeConfigData
    • load

      public void load() throws IOException
      Overridden to not only load the general configuration info but also the ftp-specific parameters.
      Overrides:
      load in class DCNodeConfigData
      Throws:
      IOException - If either the general.cfg or ruleName file could not be read
    • save

      public void save() throws IOException
      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 class DCNodeConfigData
      Throws:
      IOException - If the config directory does not exist, or either the general.cfg or rules.cfg file could not be written to