org.gcube.vremanagement.executor.state
Class EngineResource

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
      extended by org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
          extended by org.gcube.common.core.state.GCUBEWSResource
              extended by org.gcube.vremanagement.executor.state.EngineResource
All Implemented Interfaces:
org.gcube.common.core.utils.handlers.GCUBEServiceClient, org.globus.wsrf.PersistenceCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties, org.globus.wsrf.TopicListAccessor

public class EngineResource
extends org.gcube.common.core.state.GCUBEWSResource

Specialises GCUBEWSResource for the singleton resource of the engine.

Author:
Fabio Simeoni (University of Strathclyde), Kostantinos Liaskov (University of Strathclyde)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource
org.gcube.common.core.state.GCUBEStatefulResource.LOCK, org.gcube.common.core.state.GCUBEStatefulResource.TaskContext
 
Field Summary
 
Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource
logger, uuidGen
 
Constructor Summary
EngineResource()
           
 
Method Summary
 ExecutorPluginContext getContext(String name)
          Returns the context of a plugin with a given name.
 String[] getPropertyNames()
          
protected  void initialise(Object... args)
          
 TaskResource launch(String name, org.gcube.vremanagement.executor.stubs.AnyMap input)
          Launch a task with a given name and a given input.
 
Methods inherited from class org.gcube.common.core.state.GCUBEWSResource
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublish
 
Methods inherited from class org.gcube.common.core.state.GCUBEStatefulResource
getID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask, store
 
Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
getPortTypeMap, setPortTypeMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.wsrf.PersistenceCallback
store
 

Constructor Detail

EngineResource

public EngineResource()
Method Detail

initialise

protected void initialise(Object... args)
                   throws Exception,
                          IllegalArgumentException

Specified by:
initialise in class org.gcube.common.core.state.GCUBEWSResource
Throws:
Exception
IllegalArgumentException

getContext

public ExecutorPluginContext getContext(String name)
                                 throws Exception
Returns the context of a plugin with a given name.

Parameters:
name - the name.
Returns:
the context
Throws:
Exception

launch

public TaskResource launch(String name,
                           org.gcube.vremanagement.executor.stubs.AnyMap input)
                    throws Exception
Launch a task with a given name and a given input.

Parameters:
name - the name.
input - the input.
Returns:
a TaskResource that models the execution of the task.
Throws:
Exception - if the task did not exist or could not be launched.

getPropertyNames

public String[] getPropertyNames()

Overrides:
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResource


Copyright © 2013. All Rights Reserved.