Package org.gcube.dataharvest
Class AccountingDashboardHarvesterPlugin
- java.lang.Object
-
- org.gcube.vremanagement.executor.plugin.Plugin
-
- org.gcube.dataharvest.AccountingDashboardHarvesterPlugin
-
- All Implemented Interfaces:
org.gcube.vremanagement.executor.plugin.PluginDefinition
public class AccountingDashboardHarvesterPlugin extends org.gcube.vremanagement.executor.plugin.Plugin- Author:
- Eric Perrone (ISTI - CNR), Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected static InheritableThreadLocal<Map<String,org.gcube.accounting.accounting.summary.access.model.internal.Dimension>>dimensionsstatic StringDRY_RUN_INPUT_PARAMETERprotected Dateendstatic StringGET_VRE_USERS_INPUT_PARAMETERstatic StringMEASURE_TYPE_INPUT_PARAMETERstatic StringPARTIAL_HARVESTINGAllows partial harvesting of data of the current period.static StringRERUN_INPUT_PARAMETERstatic InheritableThreadLocal<org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor>scopeDescriptorstatic InheritableThreadLocal<Map<String,org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor>>scopeDescriptorsstatic StringSO_BIG_DATA_CATALOGUE_CONTEXTstatic StringSO_BIG_DATA_EU_VREstatic StringSO_BIG_DATA_IT_VREstatic StringSO_BIG_DATA_VOprotected Datestartstatic StringSTART_DATE_INPUT_PARAMETERstatic StringTAGME_CONTEXTstatic StringTO_BE_SET
-
Constructor Summary
Constructors Constructor Description AccountingDashboardHarvesterPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesgetConfigParameters()static org.gcube.accounting.accounting.summary.access.model.internal.DimensiongetDimension(String key)static InheritableThreadLocal<Properties>getProperties()static org.gcube.accounting.accounting.summary.access.model.ScopeDescriptorgetScopeDescriptor()static org.gcube.accounting.accounting.summary.access.model.ScopeDescriptorgetScopeDescriptor(String context)voidlaunch(Map<String,Object> inputs)protected voidonStop()
-
-
-
Field Detail
-
START_DATE_INPUT_PARAMETER
public static final String START_DATE_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
MEASURE_TYPE_INPUT_PARAMETER
public static final String MEASURE_TYPE_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
RERUN_INPUT_PARAMETER
public static final String RERUN_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
GET_VRE_USERS_INPUT_PARAMETER
public static final String GET_VRE_USERS_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
DRY_RUN_INPUT_PARAMETER
public static final String DRY_RUN_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
PARTIAL_HARVESTING
public static final String PARTIAL_HARVESTING
Allows partial harvesting of data of the current period. This means that in MONTHLY aggregation type the current month is harvested instead of the previous month which is done when the month is completed. This allow the portlet to display monthly data in the current moth even the data is partial (till the current day).- See Also:
- Constant Field Values
-
SO_BIG_DATA_VO
public static final String SO_BIG_DATA_VO
- See Also:
- Constant Field Values
-
SO_BIG_DATA_EU_VRE
public static final String SO_BIG_DATA_EU_VRE
- See Also:
- Constant Field Values
-
SO_BIG_DATA_IT_VRE
public static final String SO_BIG_DATA_IT_VRE
- See Also:
- Constant Field Values
-
SO_BIG_DATA_CATALOGUE_CONTEXT
public static final String SO_BIG_DATA_CATALOGUE_CONTEXT
- See Also:
- Constant Field Values
-
TAGME_CONTEXT
public static final String TAGME_CONTEXT
- See Also:
- Constant Field Values
-
TO_BE_SET
public static final String TO_BE_SET
- See Also:
- Constant Field Values
-
start
protected Date start
-
end
protected Date end
-
dimensions
protected static final InheritableThreadLocal<Map<String,org.gcube.accounting.accounting.summary.access.model.internal.Dimension>> dimensions
-
scopeDescriptors
public static final InheritableThreadLocal<Map<String,org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor>> scopeDescriptors
-
scopeDescriptor
public static final InheritableThreadLocal<org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor> scopeDescriptor
-
-
Method Detail
-
getProperties
public static InheritableThreadLocal<Properties> getProperties()
-
getDimension
public static org.gcube.accounting.accounting.summary.access.model.internal.Dimension getDimension(String key)
-
getScopeDescriptor
public static org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor getScopeDescriptor(String context)
-
getScopeDescriptor
public static org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor getScopeDescriptor()
-
getConfigParameters
public Properties getConfigParameters() throws IOException
- Throws:
IOException
-
launch
public void launch(Map<String,Object> inputs) throws Exception
- Specified by:
launchin classorg.gcube.vremanagement.executor.plugin.Plugin- Throws:
Exception
-
-