Class AggrKeyFactory

java.lang.Object
com.nt.udc.aggregator.AggregatorModule
com.nt.udc.aggregator.table.AggrKeyFactory
All Implemented Interfaces:
Factory

public class AggrKeyFactory extends AggregatorModule implements Factory
This class produces keys for aggregator records. This is for use when accessing the aggregator's table.
  • Constructor Details

    • AggrKeyFactory

      public AggrKeyFactory(ConfigIfc config, LoggerIfc logger)
      Creates a new key factory with the configuration object and a logger.
  • Method Details

    • recordInitFields

      public int[] recordInitFields()
      Returns those fields that should be included in 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.
    • 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
    • shutdown

      public void shutdown()
      Shutdown-related procedures are handled by this method
      Specified by:
      shutdown in class AggregatorModule
    • getObject

      public Object getObject(Object data)
      Returns an Object key, according to the given Object record.
      Specified by:
      getObject in interface Factory
      Parameters:
      data - Data to create the key from
      Returns:
      key
    • getKey

      public NARKey getKey(NAR nar)
      Returns a NARkey, according to the given NAR
      Parameters:
      nar - NAR to create the key from
      Returns:
      NAR key