|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity
org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.task.CustomTaskType
public abstract class CustomTaskType
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity |
|---|
ExecutionEntity.ExecutionState |
| Field Summary |
|---|
| Fields inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity |
|---|
entityName, execState, isGoalFulfilled, parent, scope, UID |
| Method Summary | |
|---|---|
void |
cancel()
Cancels the execution of this execution entity. |
Object |
clone()
|
EvaluationResult |
evaluate(String expression)
Evaluates the given expression on the execution tree rooted at the current object and returns a Node representing the result |
String |
execute(EntityExecutionData eed)
Executes the logic of this execution entity. |
abstract void |
executeTask(TaskExecutionData execData)
Executes the task. |
String |
getAttributeValue(String expression)
Gets the value of an attribute defined in the XML definition of this task type. |
DataType |
getInput()
Returns the current input object |
DataType |
getOutput()
Returns the current output object |
String |
getTypeName()
Returns the name of this ExecutionEntity's type |
abstract Document |
getXMLTaskDefinitionDocument()
Returns a Document object defining the XML structure of this task's contents. |
void |
initialize(String taskTypeName,
DataType inputDataType,
DataType outputDataType,
Element willRun)
Initializes this TaskType |
void |
initializeWithDataInScope(org.gcube.common.core.scope.GCUBEScope scope)
Finds the DataTypes that could be possibly used as inputs for this entity as well as each sub-entity contained in it. |
CustomTaskType |
newInstance(String name)
Instantiates the execution entity type represented by this object. |
void |
toXML(StringBuilder output)
Outputs an XML description of the ExecutionEntity to the given
StringBuilder object. |
boolean |
willRun()
Returns the value of the flag that specifies whether this task will be executed or not |
| Methods inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity |
|---|
assignRandomUID, createExecutionLog, getExecutionLogger, getExecutionState, getName, getParent, getScope, getUID, getUIDescription, isFulfilled, setExecutionState, setIsFulfilled, setParent, setScope |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void initialize(String taskTypeName,
DataType inputDataType,
DataType outputDataType,
Element willRun)
throws Exception
taskTypeName - the name of the task typeinputDataType - the task's input data typeoutputDataType - the task's output data type
Exceptionpublic DataType getInput()
public DataType getOutput()
public boolean willRun()
public EvaluationResult evaluate(String expression)
ExecutionEntity
evaluate in interface Evaluableevaluate in class ExecutionEntityexpression - the expression to evaluate, in "a.b.c..." notation
public String getAttributeValue(String expression)
throws Exception
expression - the expression to evaluate, in "a.b.c..." notation
Exceptionpublic String getTypeName()
ExecutionEntityExecutionEntity's type
getTypeName in class ExecutionEntitypublic CustomTaskType newInstance(String name)
ExecutionEntity
newInstance in class ExecutionEntityname - the new instance name
public void initializeWithDataInScope(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
ExecutionEntity
initializeWithDataInScope in class ExecutionEntityscope - the scope in which the entity will be executed
Exception
public Object clone()
throws CloneNotSupportedException
clone in class ExecutionEntityCloneNotSupportedExceptionpublic String execute(EntityExecutionData eed)
ExecutionEntity
execute in class ExecutionEntityeed - object containing useful data for the execution of the entitypublic void cancel()
ExecutionEntity
cancel in class ExecutionEntitypublic void toXML(StringBuilder output)
ExecutionEntityExecutionEntity to the given
StringBuilder object.
toXML in class ExecutionEntityoutput - the StringBuilder to write topublic abstract void executeTask(TaskExecutionData execData)
execData - a TaskExecutionData object containing useful information that
can be used during the task's execution
public abstract Document getXMLTaskDefinitionDocument()
throws Exception
Document object defining the XML structure of this task's contents.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||