Class 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 Detail

      • 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:
        Constant Field Values
      • AGGREGATION_END_DATE_INPUT_PARAMETER

        public static final String AGGREGATION_END_DATE_INPUT_PARAMETER
        See Also:
        Constant Field Values
      • RESTART_FROM_LAST_AGGREGATION_DATE_INPUT_PARAMETER

        public static final String RESTART_FROM_LAST_AGGREGATION_DATE_INPUT_PARAMETER
        See Also:
        Constant Field Values
      • AGGREGATION_START_DATE_DATE_FORMAT_PATTERN

        public static final String AGGREGATION_START_DATE_DATE_FORMAT_PATTERN
        See Also:
        Constant Field Values
      • AGGREGATION_START_DATE_DATE_FORMAT

        public static final DateFormat AGGREGATION_START_DATE_DATE_FORMAT
      • 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:
        Constant Field Values
      • ELABORATION_TYPE_INPUT_PARAMETER

        public static final String ELABORATION_TYPE_INPUT_PARAMETER
        Indicate which types of elaboration the plugin must perform
        See Also:
        Constant Field Values
      • LOCAL_TIME_DATE_FORMAT

        public static final DateFormat LOCAL_TIME_DATE_FORMAT
    • Constructor Detail

      • AccountingAggregatorPlugin

        public AccountingAggregatorPlugin()
    • Method Detail

      • 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