Class GCoreISPublisher
java.lang.Object
org.gcube.vremanagement.executor.ispublisher.ISPublisher
org.gcube.vremanagement.executor.ispublisher.GCoreISPublisher
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
Fields inherited from class org.gcube.vremanagement.executor.ispublisher.ISPublisher
applicationContext, isPublishers -
Constructor Summary
ConstructorsConstructorDescriptionGCoreISPublisher(org.gcube.smartgears.context.application.ApplicationContext applicationContext) Constructor for GCore Information System publisher. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClean up existing service endpoints from the Information System.protected org.gcube.common.resources.gcore.ServiceEndpointcreateServiceEndpoint(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 capabilitiesvoidpublishPlugins(Map<String, Class<? extends org.gcube.vremanagement.executor.plugin.Plugin>> availablePlugins) Publish the available plugins to the Information System.voidunpublishPlugins(boolean force) Unpublish plugins from the Information System.Methods inherited from class org.gcube.vremanagement.executor.ispublisher.ISPublisher
getISPublishers
-
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.ExecutorExceptionCreate 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 failsorg.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:ISPublisherPublish the available plugins to the Information System.- Specified by:
publishPluginsin classISPublisher- Parameters:
availablePlugins- map of available plugins
-
unpublishPlugins
Description copied from class:ISPublisherUnpublish plugins from the Information System.- Specified by:
unpublishPluginsin classISPublisher- Parameters:
force- whether to force the unpublishing even if some plugins are still running- Throws:
Exception- if the unpublishing fails
-