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 Details

  • 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

      public static Properties getConfigParameters() throws IOException
      Returns the configuration of the plugin, which the Smart Executor reads from smart-executor-plugin-accounting-dashboard-harvester.yaml in 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

      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