Class GCoreISPublisher

java.lang.Object
org.gcube.vremanagement.executor.ispublisher.ISPublisher
org.gcube.vremanagement.executor.ispublisher.GCoreISPublisher

public class GCoreISPublisher extends ISPublisher
Author:
Luca Frosini (ISTI - CNR)
  • Field Summary

    Fields inherited from class org.gcube.vremanagement.executor.ispublisher.ISPublisher

    applicationContext, isPublishers
  • Constructor Summary

    Constructors
    Constructor
    Description
    GCoreISPublisher(org.gcube.smartgears.context.application.ApplicationContext applicationContext)
    Constructor for GCore Information System publisher.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Clean up existing service endpoints from the Information System.
    protected org.gcube.common.resources.gcore.ServiceEndpoint
    createServiceEndpoint(Map<String,Class<? extends org.gcube.vremanagement.executor.plugin.Plugin>> availablePlugins)
    Create the Service Endpoint using information related to discovered available plugins and their own discovered capabilities
    void
    publishPlugins(Map<String,Class<? extends org.gcube.vremanagement.executor.plugin.Plugin>> availablePlugins)
    Publish the available plugins to the Information System.
    void
    unpublishPlugins(boolean force)
    Unpublish plugins from the Information System.

    Methods inherited from class org.gcube.vremanagement.executor.ispublisher.ISPublisher

    getISPublishers

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GCoreISPublisher

      public GCoreISPublisher(org.gcube.smartgears.context.application.ApplicationContext applicationContext)
      Constructor for GCore Information System publisher.
      Parameters:
      applicationContext - the application context
  • Method Details

    • createServiceEndpoint

      protected org.gcube.common.resources.gcore.ServiceEndpoint createServiceEndpoint(Map<String,Class<? extends org.gcube.vremanagement.executor.plugin.Plugin>> availablePlugins) throws org.gcube.vremanagement.executor.exception.PluginNotFoundException, org.gcube.vremanagement.executor.exception.ExecutorException
      Create the Service Endpoint using information related to discovered available plugins and their own discovered capabilities
      Parameters:
      availablePlugins - map of available plugins to be published
      Returns:
      the created ServiceEndpoint
      Throws:
      org.gcube.vremanagement.executor.exception.ExecutorException - if the service endpoint creation fails
      org.gcube.vremanagement.executor.exception.PluginNotFoundException - if a required plugin is not found
    • cleanServiceEndpoints

      protected void cleanServiceEndpoints()
      Clean up existing service endpoints from the Information System. This method removes all service endpoints associated with this SmartExecutor instance.
    • publishPlugins

      public void publishPlugins(Map<String,Class<? extends org.gcube.vremanagement.executor.plugin.Plugin>> availablePlugins)
      Description copied from class: ISPublisher
      Publish the available plugins to the Information System.
      Specified by:
      publishPlugins in class ISPublisher
      Parameters:
      availablePlugins - map of available plugins
    • unpublishPlugins

      public void unpublishPlugins(boolean force) throws Exception
      Description copied from class: ISPublisher
      Unpublish plugins from the Information System.
      Specified by:
      unpublishPlugins in class ISPublisher
      Parameters:
      force - whether to force the unpublishing even if some plugins are still running
      Throws:
      Exception - if the unpublishing fails