Class FlexibleAggregatorNode

All Implemented Interfaces:
AdminIfc, ConfigIfc, LoggerIfc, NodeHealthIfc, NodeStateManagementIfc, PropertyIfc, StateManagementIfc

public class FlexibleAggregatorNode extends NPLProcessorNode
This is the basic aggregator, rewritten to expose the internal functionality through java hooks. This allows the traditional aggregation functionality to be accessed in what is essentially an enhancer. All the business logic is now implemented in the NPL instead of the field processor.
  • Field Details

    • configGUI

      protected static String configGUI
  • Constructor Details

  • Method Details

    • setMethodHandler

      public void setMethodHandler(FlexibleAggregatorHandler handler)
      This will set the method handler. No checks are made to see if it was already set.
    • getMethodHandler

      public FlexibleAggregatorHandler getMethodHandler()
      Will return a reference to the current method handler.
    • getConfigDataGuiClass

      public String getConfigDataGuiClass()
      Returns the name of the Config Gui Class
      Overrides:
      getConfigDataGuiClass in class NPLProcessorNode
      Returns:
      Returns the class name of the DCNodeConfigGUI object used by the node.
    • getMinorType

      public String getMinorType()
      Returns the Aggregator's minor type.
      Overrides:
      getMinorType in class NPLProcessorNode
      Returns:
      Returns the minor type identifier for this node.
    • backup

      public void backup()
      Not used for Aggregator backup
      Overrides:
      backup in class DCNode
    • configureFieldProcessor

      protected DCFieldProcessor configureFieldProcessor()
      Description copied from class: NPLProcessorNode
      Sets up the general NPLFieldProcesser passing a NAR as the output class for the Field Processor, and passes the NPL file gained from the config for parsing instructions for the NPL. This method should be over-ridden by derived classes, if the derived class needs to construct it's field processor with additional information (for example, constructing the FieldProcessor with a IDCMethodHandler object.
      Overrides:
      configureFieldProcessor in class NPLProcessorNode
      Returns:
      The DCFieldProcessor that has been configured.
    • shutdown

      public void shutdown()
      Description copied from class: NPLProcessorNode
      Performs the necessary tasks to properly shutdown the node.
      Specified by:
      shutdown in interface AdminIfc
      Overrides:
      shutdown in class NPLProcessorNode
    • main

      public static void main(String[] args)