|
||||||||||
| 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.job.JobType
public class JobType
| 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 |
| Constructor Summary | |
|---|---|
JobType(Class<? extends DataType> inputClass)
Class constructor |
|
| Method Summary | |
|---|---|
void |
addChainExecutionAssignment(AssignTaskType assignment)
|
void |
addInitAssignment(AssignTaskType initAssignment)
Adds an initialization assignment in the list of this job instance's initialization list |
void |
cancel()
Cancels the execution of this execution entity. |
Object |
clone()
|
void |
createJobInstancesForAllApplicableInputs(org.gcube.common.core.scope.GCUBEScope scope)
Creates a job instance for each one of the applicable inputs for this job, and adds it to the BootstrappingConfiguration object |
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. |
String |
execute(EntityExecutionData eed,
Map<String,String> userInputs,
String jobsChainUID,
JobType prevJobInchain)
|
List<DataType> |
getApplicableInputs()
Returns the list of DataTypes corresponding to the applicable inputs for this job. |
String |
getBaseJobName()
Returns the name of the base job that this job extends (if any) |
List<AssignTaskType> |
getChainExecutionAssignments()
|
List<AssignTaskType> |
getInitAssignments()
Returns the list of initialization assignments for this job |
DataType |
getInput()
Returns the DataType object that represents the input of this JobType |
ExecutionEntity |
getTaskTree()
Returns the root of this job's task tree |
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. |
void |
initialize(String jobTypeName,
String jobDescription,
DataType inputDataType,
Element tasks,
BootstrappingConfiguration conf)
Initializes this JobType |
void |
initializeFromPreviousJobInChain(JobType previousJob)
|
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. |
JobType |
newInstance(String newJobName)
Instantiates this JobType, creating a new job. |
JobType |
newInstance(String newJobName,
String baseJob)
Instantiates this JobType, creating a new job. |
void |
removeApplicableInputs(List<DataType> applicableInputsToRemove)
Accepts a list of DataTypes and removes from the list of this JobType's applicable inputs the ones whose UID matches the UID of a DataType contained in the given list. |
void |
setBaseJobName(String baseJobName)
|
void |
setChainExecutionAssignments(List<AssignTaskType> assignments)
|
void |
setInitAssignments(List<AssignTaskType> initAssignments)
Sets the list of initialization assignments for this job type instance |
void |
setJobName(String jobName)
|
void |
setJobTypeName(String jobTypeName)
|
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.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 |
|---|
public JobType(Class<? extends DataType> inputClass)
| Method Detail |
|---|
public void initialize(String jobTypeName,
String jobDescription,
DataType inputDataType,
Element tasks,
BootstrappingConfiguration conf)
throws Exception
jobTypeName - the name of the task typeinputDataType - the task's input data typetasks - the XML definition of the job's task tree
Exceptionpublic JobType newInstance(String newJobName)
newInstance in class ExecutionEntitynewJobName - the name of the new job
public JobType newInstance(String newJobName,
String baseJob)
newJobName - the name of the new jobbaseJob - the name of the base job that this job extends
public void setJobName(String jobName)
public void setBaseJobName(String baseJobName)
public void setJobTypeName(String jobTypeName)
public void setInitAssignments(List<AssignTaskType> initAssignments)
initAssignments - the list of initialization assignmentspublic void setChainExecutionAssignments(List<AssignTaskType> assignments)
public List<AssignTaskType> getChainExecutionAssignments()
public void addInitAssignment(AssignTaskType initAssignment)
initAssignment - the initialization assignment to addpublic void addChainExecutionAssignment(AssignTaskType assignment)
public String getBaseJobName()
public List<AssignTaskType> getInitAssignments()
public DataType getInput()
public ExecutionEntity getTaskTree()
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
Exceptionpublic List<DataType> getApplicableInputs()
public void removeApplicableInputs(List<DataType> applicableInputsToRemove)
applicableInputsToRemove - the list of DataTypes containing the UIDs to remove
public void createJobInstancesForAllApplicableInputs(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
BootstrappingConfiguration object
Exceptionpublic EvaluationResult evaluate(String expression)
ExecutionEntity
evaluate in interface Evaluableevaluate in class ExecutionEntityexpression - the expression to evaluate, in "a.b.c..." notation
public String getTypeName()
ExecutionEntityExecutionEntity's type
getTypeName in class ExecutionEntitypublic String getUIDescription()
ExecutionEntity
getUIDescription in class ExecutionEntitypublic String execute(EntityExecutionData eed)
ExecutionEntity
execute in class ExecutionEntityeed - object containing useful data for the execution of the entity
public String execute(EntityExecutionData eed,
Map<String,String> userInputs,
String jobsChainUID,
JobType prevJobInchain)
public void cancel()
ExecutionEntity
cancel in class ExecutionEntity
public Object clone()
throws CloneNotSupportedException
clone in class ExecutionEntityCloneNotSupportedExceptionpublic void toXML(StringBuilder output)
ExecutionEntityExecutionEntity to the given
StringBuilder object.
toXML in class ExecutionEntityoutput - the StringBuilder to write topublic void initializeFromPreviousJobInChain(JobType previousJob)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||