Package com.nt.udc.aggregator.table
Class AggrKeyFactory
java.lang.Object
com.nt.udc.aggregator.AggregatorModule
com.nt.udc.aggregator.table.AggrKeyFactory
- All Implemented Interfaces:
Factory
This class produces keys for aggregator records.
This is for use when accessing the aggregator's table.
-
Field Summary
Fields inherited from class com.nt.udc.aggregator.AggregatorModule
config, logger
-
Constructor Summary
ConstructorsConstructorDescriptionAggrKeyFactory
(ConfigIfc config, LoggerIfc logger) Creates a new key factory with the configuration object and a logger. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method should obtain the necessary information from the config class, in order to configure the module.Returns a NARkey, according to the given NARReturns an Object key, according to the given Object record.int[]
Returns those fields that should be included in a newly created record.void
shutdown()
Shutdown-related procedures are handled by this method
-
Constructor Details
-
AggrKeyFactory
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 classAggregatorModule
- 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 classAggregatorModule
-
shutdown
public void shutdown()Shutdown-related procedures are handled by this method- Specified by:
shutdown
in classAggregatorModule
-
getObject
Returns an Object key, according to the given Object record. -
getKey
Returns a NARkey, according to the given NAR- Parameters:
nar
- NAR to create the key from- Returns:
- NAR key
-