Package org.gcube.dataharvest
Class AccountingDashboardHarvesterPlugin
java.lang.Object
org.gcube.vremanagement.executor.plugin.Plugin
org.gcube.dataharvest.AccountingDashboardHarvesterPlugin
- All Implemented Interfaces:
org.gcube.smartgears.plugins.ServicePlugin,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
FieldsModifier and TypeFieldDescriptionprotected static final InheritableThreadLocal<Map<String,org.gcube.accounting.accounting.summary.access.model.internal.Dimension>> static final Stringprotected Datestatic final Stringstatic final Stringstatic final StringAllows partial harvesting of data of the current period.static final Stringstatic final InheritableThreadLocal<Map<String,org.gcube.accounting.accounting.summary.access.model.ScopeDescriptor>> static final Stringstatic final Stringstatic final Stringstatic final Stringprotected Datestatic final Stringstatic final Stringstatic final StringFields inherited from class org.gcube.vremanagement.executor.plugin.Plugin
DESCRIPTION_PROPERTY, GROUP_PROPERTY, iterationNumber, NAME_PROPERTY, percentageSetter, PLUGIN_PROPERTIES_SUFFIX_FILENAME, properties, uuid, VERSION_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesReturns the configuration of the plugin, which the Smart Executor reads fromsmart-executor-plugin-accounting-dashboard-harvester.yamlin the directory of the plugin and gives to it at launch: the client of the plugin (client_id,client_secret) and the mapping of the harvested data keys.static org.gcube.accounting.accounting.summary.access.model.internal.DimensiongetDimension(String key) static org.gcube.accounting.accounting.summary.access.model.ScopeDescriptorgetScopeDescriptor(String context) voidprotected voidonStop()Methods inherited from class org.gcube.vremanagement.executor.plugin.Plugin
getConfiguration, getDescription, getGroup, getIterationNumber, getName, getSupportedCapabilities, getUUID, getVersion, path, setConfiguration, setIterationNumber, setPercentageEvolution, setPercentageSetter, setUUID, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gcube.smartgears.plugins.ServicePlugin
authenticated, configure, contexts, documentation
-
Field Details
-
START_DATE_INPUT_PARAMETER
- See Also:
-
MEASURE_TYPE_INPUT_PARAMETER
- See Also:
-
RERUN_INPUT_PARAMETER
- See Also:
-
GET_VRE_USERS_INPUT_PARAMETER
- See Also:
-
DRY_RUN_INPUT_PARAMETER
- See Also:
-
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:
-
SO_BIG_DATA_VO
- See Also:
-
SO_BIG_DATA_EU_VRE
- See Also:
-
SO_BIG_DATA_IT_VRE
- See Also:
-
SO_BIG_DATA_CATALOGUE_CONTEXT
- See Also:
-
TAGME_CONTEXT
- See Also:
-
TO_BE_SET
- See Also:
-
start
-
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
-
-
Constructor Details
-
AccountingDashboardHarvesterPlugin
public AccountingDashboardHarvesterPlugin()
-
-
Method Details
-
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) -
getConfigParameters
Returns the configuration of the plugin, which the Smart Executor reads fromsmart-executor-plugin-accounting-dashboard-harvester.yamlin the directory of the plugin and gives to it at launch: the client of the plugin (client_id,client_secret) and the mapping of the harvested data keys.- Returns:
- a copy of the configuration
- Throws:
IOException- if the plugin has not been given its configuration
-
launch
- Specified by:
launchin classorg.gcube.vremanagement.executor.plugin.Plugin- Throws:
Exception
-
onStop
- Specified by:
onStopin classorg.gcube.vremanagement.executor.plugin.Plugin- Throws:
Exception
-