|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
org.gcube.common.core.state.GCUBEWSResource
org.gcube.vremanagement.executor.state.TaskResource
public class TaskResource
An extension of GCUBEWSResource that provides and publishes a runtime environment for a ExecutorTask.
| Nested Class Summary | |
|---|---|
class |
TaskResource.TaskLog
Extends GCUBELog to forward a selection of log messages to the log RP. |
| 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 | |
|---|---|
TaskResource()
|
|
| Method Summary | |
|---|---|
ExecutorPluginContext |
getContext()
Returns the context of the task's plugin. |
String |
getError()
Returns the value of the error RP. |
Map<String,Object> |
getInputs()
Returns (a copy of) the task inputs. |
String |
getLog()
Returns the contents of the log. |
Map<String,Object> |
getOutputs()
Returns the task outputs. |
String[] |
getPropertyNames()
|
Calendar |
getStartTime()
Gets the value of the start time RP. |
ExecutorTask |
getTask()
Returns the task. |
protected String[] |
getTopicNames()
|
protected void |
initialise(Object... args)
|
void |
launch(org.gcube.common.core.scope.GCUBEScope scope)
Launches the task in a given scope. |
void |
setContext(ExecutorPluginContext context)
Sets the context of the task's plugin. |
void |
setError(String value)
Sets the value of the error RP. |
void |
setInputs(Map<String,Object> inputs)
Sets the task inputs. |
void |
setLog(String value)
Sets the value of the log RP. |
void |
setOutputs(Map<String,Object> outputs)
Sets the taks's outputs. |
void |
setStartTime(Calendar value)
Sets the value of the start time RP. |
void |
setState(String value)
Sets the value of the state RP. |
protected void |
setType(org.gcube.vremanagement.executor.stubs.TaskDescription value)
Sets the value of the type RP. |
void |
stop()
Attempts to stop execution. |
void |
store()
|
| Methods inherited from class org.gcube.common.core.state.GCUBEWSResource |
|---|
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, 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 |
| 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 |
| Constructor Detail |
|---|
public TaskResource()
| Method Detail |
|---|
public String[] getPropertyNames()
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResourceprotected String[] getTopicNames()
getTopicNames in class org.gcube.common.core.state.GCUBEWSResource
protected void initialise(Object... args)
throws Exception
initialise in class org.gcube.common.core.state.GCUBEWSResourceExceptionpublic ExecutorPluginContext getContext()
public void setContext(ExecutorPluginContext context)
context - the context.public ExecutorTask getTask()
public void setStartTime(Calendar value)
value - the value.public Calendar getStartTime()
protected void setType(org.gcube.vremanagement.executor.stubs.TaskDescription value)
value - the value.public void setState(String value)
value - the value.public void setInputs(Map<String,Object> inputs)
inputs - the inputs.public Map<String,Object> getInputs()
public void setOutputs(Map<String,Object> outputs)
outputs - the outputs.public Map<String,Object> getOutputs()
public void setError(String value)
value - the value.public String getError()
public void setLog(String value)
value - the contents.public String getLog()
public void stop()
throws OperationNotSupportedException,
Exception
UnsupportedOperationException - if the task cannot be stopped.
Exception - if the task could not be stopped.
OperationNotSupportedException
public void launch(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
scope - the scope.
Exception - if the task could not launched.public void store()
store in interface org.globus.wsrf.PersistenceCallbackstore in class org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||