Class FFOINode

All Implemented Interfaces:
AdminIfc, ConfigIfc, LoggerIfc, NodeHealthIfc, NodeStateManagementIfc, PropertyIfc, StateManagementIfc
Direct Known Subclasses:
PortalOINode

public class FFOINode extends OINode
This OI Node generates ASCII text files from incoming NARs.

The incoming NARs are transformed into FFOIRecord objects based upon a pre-determined set of NPL commands. The data is then extracted from the FFOIRecord object in a format suitable to be written to the ASCII file.

  • Field Details

  • Constructor Details

    • FFOINode

      public FFOINode()
      Default Constructor; instantiates objects necessary to define the DCNodeTypeIfc methods.
    • FFOINode

      public FFOINode(String[] args) throws NodeStartException
      Constructor for the class. Calls the super class OINode with the given array of arguments.
      Parameters:
      args - Arguments to be passed to the DCNode super class.
      Throws:
      NodeStartException
  • Method Details

    • initFieldProcessor

      protected NPLFieldProcessor initFieldProcessor()
    • getOutputFields

      protected ArrayList getOutputFields()
    • getOutputFields

      protected ArrayList getOutputFields(int i)
    • initFileFormatter

      protected OIFileFormatter initFileFormatter(OIFileWriter writer, boolean bAddHeader) throws NodeStartException
      Throws:
      NodeStartException
    • initFileFormatter

      protected OIFileFormatter initFileFormatter(OIFileWriter writer, boolean bAddHeader, int i) throws NodeStartException
      Throws:
      NodeStartException
    • initFileWriter

      protected OIFileWriter initFileWriter(int maxRecsPerFile) throws NodeStartException
      Throws:
      NodeStartException
    • initFileWriter

      protected OIFileWriter initFileWriter(int maxRecsPerFile, int tId) throws NodeStartException
      Throws:
      NodeStartException
    • backup

      public void backup()
      Performs the necessary tasks to create a backup of the incoming or outgoing data. This task is initiated by the node manager periodically, if the node is configured to be backed up.
      Overrides:
      backup in class DCNode
    • reconfigure

      public void reconfigure()
      Performs the necessary tasks to reconfigure the node while it is running. This task is initiated by the node manager.
      Specified by:
      reconfigure in interface AdminIfc
      Overrides:
      reconfigure in class DCNode
    • shutdown

      public void shutdown()
      Performs the necessary tasks to properly shutdown the node.
      Specified by:
      shutdown in interface AdminIfc
      Overrides:
      shutdown in class DCNode
    • isHealthy

      public boolean isHealthy()
      Description copied from class: OINode
      This method is used to check the transport's state of health. The criterion for determining the node's health is based on the transport's health and whether all registered threads are alive. It is to be overridden by subclasses.
      Specified by:
      isHealthy in interface NodeHealthIfc
      Overrides:
      isHealthy in class OINode
      Returns:
      true if the transport is healthy, false otherwise
    • getPerformanceMetrics

      public DCNodePerformanceIfc getPerformanceMetrics()
      Description copied from class: DCNode
      Returns the stream handler's node performance object
      Specified by:
      getPerformanceMetrics in interface AdminIfc
      Overrides:
      getPerformanceMetrics in class DCNode
      Returns:
      DCNodePerformanceIfc object
    • getMinorType

      public String getMinorType()
      Returns the type name of the FTP Push FlatFile OI node.
      Specified by:
      getMinorType in class DCNode
      Returns:
      Returns the minor type identifier for this node.
    • getConfigDataGuiClass

      public String getConfigDataGuiClass()
      Returns the name of the FTP Push FlatFile OI Config Data GUI class.
      Specified by:
      getConfigDataGuiClass in class DCNode
      Returns:
      Returns the class name of the DCNodeConfigGUI object used by the node.
    • main

      public static void main(String[] args)
      This method is useful for development and debugging purposes. Within the application, however, the main() method is never used.
    • isNodeStateImplemented

      public boolean isNodeStateImplemented()
      This method returns true in order to prevent restoreState from being called in the DCNode constructor, before the node is ready.
      Overrides:
      isNodeStateImplemented in class DCNode
      Returns:
      true, if node implements node state save and restore
    • startNode

      protected void startNode() throws NodeStartException
      This method is to be called when the node is started.
      Throws:
      NodeStartException