Class AccountingAggregatorPlugin

java.lang.Object
org.gcube.vremanagement.executor.plugin.Plugin
org.gcube.accounting.aggregator.plugin.AccountingAggregatorPlugin
All Implemented Interfaces:
org.gcube.vremanagement.executor.plugin.PluginDefinition

public class AccountingAggregatorPlugin extends org.gcube.vremanagement.executor.plugin.Plugin
Author:
Alessandro Pieve (ISTI - CNR), Luca Frosini (ISTI - CNR)
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • AGGREGATION_TYPE_INPUT_PARAMETER

      public static final String AGGREGATION_TYPE_INPUT_PARAMETER
      Key to indicate AggregationType
      See Also:
    • AGGREGATION_START_DATE_INPUT_PARAMETER

      public static final String AGGREGATION_START_DATE_INPUT_PARAMETER
      Day is ignored for MONTHLY aggregation Month and Day are ignored for YEARLY aggregation
      See Also:
    • AGGREGATION_END_DATE_INPUT_PARAMETER

      public static final String AGGREGATION_END_DATE_INPUT_PARAMETER
      See Also:
    • RESTART_FROM_LAST_AGGREGATION_DATE_INPUT_PARAMETER

      public static final String RESTART_FROM_LAST_AGGREGATION_DATE_INPUT_PARAMETER
      See Also:
    • AGGREGATION_START_DATE_DATE_FORMAT_PATTERN

      public static final String AGGREGATION_START_DATE_DATE_FORMAT_PATTERN
      See Also:
    • AGGREGATION_START_DATE_DATE_FORMAT

      public static final DateFormat AGGREGATION_START_DATE_DATE_FORMAT
    • FORCE_EARLY_AGGREGATION

      public static final String FORCE_EARLY_AGGREGATION
      See Also:
    • FORCE_RERUN

      public static final String FORCE_RERUN
      See Also:
    • FORCE_RESTART

      public static final String FORCE_RESTART
      See Also:
    • SKIP_AGGREGATION

      public static final String SKIP_AGGREGATION
      This parameter is used to skip aggregation. Default is false. It is used mainly to move the data from a db/table to another when the data has been already aggregated and any attempt to aggregate again does not have any effect. Please note that aggregation could take a lot of time when the amount of not aggregable records is more than 50.000/60.000. The reason is simple. Any records must be compared with the previous 50.000 before deciding that is not aggregable and to be inserted in the list. Furthermore it requires a lot of memory.
      See Also:
    • ELABORATION_TYPE_INPUT_PARAMETER

      public static final String ELABORATION_TYPE_INPUT_PARAMETER
      Indicate which types of elaboration the plugin must perform
      See Also:
    • LOCAL_TIME_DATE_FORMAT_PATTERN

      public static final String LOCAL_TIME_DATE_FORMAT_PATTERN
      See Also:
    • LOCAL_TIME_DATE_FORMAT

      public static final DateFormat LOCAL_TIME_DATE_FORMAT
    • RECORD_TYPE_INPUT_PARAMETER

      public static final String RECORD_TYPE_INPUT_PARAMETER
      See Also:
  • Constructor Details

    • AccountingAggregatorPlugin

      public AccountingAggregatorPlugin()
  • Method Details

    • launch

      public void launch(Map<String,Object> inputs) throws Exception
      Specified by:
      launch in class org.gcube.vremanagement.executor.plugin.Plugin
      Throws:
      Exception
    • onStop

      protected void onStop() throws Exception
      Specified by:
      onStop in class org.gcube.vremanagement.executor.plugin.Plugin
      Throws:
      Exception