|
||||||||||
| 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
public abstract class ExecutionEntity
| Nested Class Summary | |
|---|---|
static class |
ExecutionEntity.ExecutionState
|
| Field Summary | |
|---|---|
protected String |
entityName
The name of this entity instance |
protected ExecutionEntity.ExecutionState |
execState
The state of execution of this ExecutionEntity |
protected boolean |
isGoalFulfilled
Specifies whether the goal of this execution entity has been fulfilled or not |
protected ExecutionEntity |
parent
The parent execution entity in the execution hierarchy |
protected org.gcube.common.core.scope.GCUBEScope |
scope
The scope that this execution entity belongs to |
protected String |
UID
The unique identifier of this entity |
| Constructor Summary | |
|---|---|
ExecutionEntity()
Class constructor |
|
| Method Summary | |
|---|---|
void |
assignRandomUID()
Assigns a new, randomly generated UID to this ExecutionEntity |
abstract void |
cancel()
Cancels the execution of this execution entity. |
Object |
clone()
|
protected void |
createExecutionLog(org.apache.log4j.Logger serverLogger,
org.gcube.application.framework.core.session.ASLSession session)
Creates a new, empty execution logger |
abstract EvaluationResult |
evaluate(String expression)
Evaluates the given expression on the execution tree rooted at the current object and returns a Node representing the result |
abstract String |
execute(EntityExecutionData execData)
Executes the logic of this execution entity. |
TaskExecutionLogger |
getExecutionLogger()
Returns the execution logger |
ExecutionEntity.ExecutionState |
getExecutionState()
Returns the current execution state of this entity |
String |
getName()
Returns the name of this execution entity |
ExecutionEntity |
getParent()
Returns the parent of this execution entity |
org.gcube.common.core.scope.GCUBEScope |
getScope()
Returns the scope that this execution entity belongs to |
abstract String |
getTypeName()
Returns the name of this ExecutionEntity's type |
String |
getUID()
Returns the entity's UID |
abstract String |
getUIDescription()
Returns a string which will be displayed in the user interface as a description for this entity. |
abstract 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. |
boolean |
isFulfilled()
Returns true if this entity's goal is fulfilled, or false otherwise |
abstract ExecutionEntity |
newInstance(String name)
Instantiates the execution entity type represented by this object. |
void |
setExecutionState(ExecutionEntity.ExecutionState state)
Sets the execution state of this entity |
void |
setIsFulfilled(boolean isFulfilled)
Sets this execution entity as 'fulfilled', or not 'fulfilled' |
void |
setParent(ExecutionEntity parent)
Sets the parent of this execution entity |
void |
setScope(org.gcube.common.core.scope.GCUBEScope scope)
Sets the scope that this execution entity belongs to |
abstract void |
toXML(StringBuilder output)
Outputs an XML description of the ExecutionEntity to the given
StringBuilder object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExecutionEntity parent
protected String entityName
protected boolean isGoalFulfilled
protected String UID
protected ExecutionEntity.ExecutionState execState
ExecutionEntity
protected org.gcube.common.core.scope.GCUBEScope scope
| Constructor Detail |
|---|
public ExecutionEntity()
| Method Detail |
|---|
public ExecutionEntity getParent()
public void setParent(ExecutionEntity parent)
parent - the parentpublic String getName()
public String getUID()
public void assignRandomUID()
ExecutionEntity
public boolean isFulfilled()
public void setIsFulfilled(boolean isFulfilled)
isFulfilled - public void setExecutionState(ExecutionEntity.ExecutionState state)
state - the execution state to setpublic ExecutionEntity.ExecutionState getExecutionState()
public void setScope(org.gcube.common.core.scope.GCUBEScope scope)
scope - the entity's scopepublic org.gcube.common.core.scope.GCUBEScope getScope()
protected void createExecutionLog(org.apache.log4j.Logger serverLogger,
org.gcube.application.framework.core.session.ASLSession session)
serverLogger - the server-side logger currently in use by this execution entitypublic TaskExecutionLogger getExecutionLogger()
public abstract String getTypeName()
ExecutionEntity's type
public abstract String execute(EntityExecutionData execData)
execData - object containing useful data for the execution of the entitypublic abstract void cancel()
public abstract ExecutionEntity newInstance(String name)
name - the new instance name
public abstract EvaluationResult evaluate(String expression)
evaluate in interface Evaluableexpression - the expression to evaluate, in "a.b.c..." notation
public abstract void initializeWithDataInScope(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
scope - the scope in which the entity will be executed
Exceptionpublic abstract String getUIDescription()
public abstract void toXML(StringBuilder output)
ExecutionEntity to the given
StringBuilder object.
output - the StringBuilder to write to
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||