org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.task
Class SequentialExecution

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity
      extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.task.ExecutionType
          extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.task.SequentialExecution
All Implemented Interfaces:
Cloneable, Evaluable

public class SequentialExecution
extends ExecutionType

Author:
Spyros Boutsis, NKUA

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.task.ExecutionType
executionEntities
 
Fields inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity
entityName, execState, isGoalFulfilled, parent, scope, UID
 
Constructor Summary
SequentialExecution()
           
 
Method Summary
 String execute(EntityExecutionData eed)
          Executes the logic of this execution entity.
 String getTypeName()
          Returns the name of this ExecutionEntity's type
 String getUIDescription()
          Returns a string which will be displayed in the user interface as a description for this entity.
 SequentialExecution 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.
 
Methods inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.task.ExecutionType
addExecutionEntity, cancel, clone, evaluate, getEntitiesToBeExecuted, initialize, initializeWithDataInScope
 
Methods inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.ExecutionEntity
assignRandomUID, createExecutionLog, getExecutionLogger, getExecutionState, getName, getParent, getScope, getUID, isFulfilled, setExecutionState, setIsFulfilled, setParent, setScope
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialExecution

public SequentialExecution()
Method Detail

newInstance

public SequentialExecution newInstance(String name)
Description copied from class: ExecutionEntity
Instantiates the execution entity type represented by this object. The instance will have the given name.

Specified by:
newInstance in class ExecutionEntity
Parameters:
name - the new instance name
Returns:
the new instance

execute

public String execute(EntityExecutionData eed)
Description copied from class: ExecutionEntity
Executes the logic of this execution entity. This method cannot throw an exception. In the case of errors, appropriate messages must be logged in the execution log.

Specified by:
execute in class ExecutionEntity
Parameters:
eed - object containing useful data for the execution of the entity

getUIDescription

public String getUIDescription()
Description copied from class: ExecutionEntity
Returns a string which will be displayed in the user interface as a description for this entity.

Specified by:
getUIDescription in class ExecutionEntity
Returns:
the entity description

getTypeName

public String getTypeName()
Description copied from class: ExecutionEntity
Returns the name of this ExecutionEntity's type

Specified by:
getTypeName in class ExecutionEntity
Returns:
the type name

toXML

public void toXML(StringBuilder output)
Description copied from class: ExecutionEntity
Outputs an XML description of the ExecutionEntity to the given StringBuilder object.

Specified by:
toXML in class ExecutionEntity
Parameters:
output - the StringBuilder to write to


Copyright © 2013. All Rights Reserved.