|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectGCUBEWSResource
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. |
| Constructor Summary | |
|---|---|
TaskResource()
|
|
| Method Summary | |
|---|---|
ExecutorPluginContext |
getContext()
Returns the context of the task's plugin. |
java.lang.String |
getError()
Returns the value of the error RP. |
java.util.Map<java.lang.String,java.lang.Object> |
getInputs()
Returns (a copy of) the task inputs. |
java.lang.String |
getLog()
Returns the contents of the log. |
java.util.Map<java.lang.String,java.lang.Object> |
getOutputs()
Returns the task outputs. |
java.lang.String[] |
getPropertyNames()
|
java.util.Calendar |
getStartTime()
Gets the value of the start time RP. |
ExecutorTask |
getTask()
Returns the task. |
void |
launch(GCUBEScope scope)
Launches the task in a given scope. |
void |
setContext(ExecutorPluginContext context)
Sets the context of the task's plugin. |
void |
setError(java.lang.String value)
Sets the value of the error RP. |
void |
setInputs(java.util.Map<java.lang.String,java.lang.Object> inputs)
Sets the task inputs. |
void |
setLog(java.lang.String value)
Sets the value of the log RP. |
void |
setOutputs(java.util.Map<java.lang.String,java.lang.Object> outputs)
Sets the taks's outputs. |
void |
setStartTime(java.util.Calendar value)
Sets the value of the start time RP. |
void |
setState(java.lang.String value)
Sets the value of the state RP. |
void |
stop()
Attempts to stop execution. |
void |
store()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskResource()
| Method Detail |
|---|
public java.lang.String[] getPropertyNames()
public ExecutorPluginContext getContext()
public void setContext(ExecutorPluginContext context)
context - the context.public ExecutorTask getTask()
public void setStartTime(java.util.Calendar value)
value - the value.public java.util.Calendar getStartTime()
public void setState(java.lang.String value)
value - the value.public void setInputs(java.util.Map<java.lang.String,java.lang.Object> inputs)
inputs - the inputs.public java.util.Map<java.lang.String,java.lang.Object> getInputs()
public void setOutputs(java.util.Map<java.lang.String,java.lang.Object> outputs)
outputs - the outputs.public java.util.Map<java.lang.String,java.lang.Object> getOutputs()
public void setError(java.lang.String value)
value - the value.public java.lang.String getError()
public void setLog(java.lang.String value)
value - the contents.public java.lang.String getLog()
public void stop()
throws javax.naming.OperationNotSupportedException,
java.lang.Exception
java.lang.UnsupportedOperationException - if the task cannot be stopped.
java.lang.Exception - if the task could not be stopped.
javax.naming.OperationNotSupportedException
public void launch(GCUBEScope scope)
throws java.lang.Exception
scope - the scope.
java.lang.Exception - if the task could not launched.public void store()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||