Class AggrConfig

All Implemented Interfaces:
ConfigIfc

public class AggrConfig extends AggregatorModule implements ConfigIfc
This class stores the configuration data for both the config file and the rules file. This class will only continue working if there are no ambiguous config/rule names.
  • Constructor Details

  • Method Details

    • getConfigData

      protected void getConfigData()
      Description copied from class: AggregatorModule
      This method should obtain the necessary information from the config class, in order to configure the module.
      Specified by:
      getConfigData in class AggregatorModule
    • recordInitFields

      public int[] recordInitFields()
      Returns those fields needed by a newly created record.
      Specified by:
      recordInitFields in class AggregatorModule
      Returns:
      Field ID's to include in a new record that is inserted into the table.
    • shutdown

      public void shutdown()
      Performs shutdown-related procedures
      Specified by:
      shutdown in class AggregatorModule
    • getItem

      public String getItem(String key)
      Looks in both the config file and the rules file for a given setting. If a setting is ambiguous, it returns the one in the config file.
      Specified by:
      getItem in interface ConfigIfc
      Parameters:
      key - Setting to look for
      Returns:
      Value of the setting, or null if none found
    • setItem

      public void setItem(String key, String value)
      Not supported.
      Specified by:
      setItem in interface ConfigIfc
    • getConfigObject

      public Object getConfigObject(String ifcType)
      Returns an instance of the given ifcType that can handle the given interface's aggregator feature. Typically, the return value can be cast to the interface name.
      Parameters:
      ifcType - Interface, defining the feature we're looking for.
      Returns:
      Object that implements the feature, or null if unavailable.