|
||||||||||
| 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.BootstrappingConfiguration
public class BootstrappingConfiguration
| Constructor Summary | |
|---|---|
BootstrappingConfiguration()
Class constructor |
|
| Method Summary | |
|---|---|
void |
addJobInstance(String jobTypeName,
JobType jobInstance)
Adds a job instance to the list of instances for the given job type |
void |
addSubmittedJobInstance(JobType jobInstance)
Adds a submitted (started) job instance to the list of submitted jobs |
void |
clearAllJobInstances()
Clears the map of job instances for all the job types |
void |
clearJobTypeInstances(String jobTypeName)
Clears the list of job instances for the given job type |
Map<String,List<JobType>> |
getAllJobInstances()
Returns all the instances of all job types in the active scope |
Map<String,List<JobType>> |
getAllJobsPerJobType()
Returns a map containing all jobs defined for each job type |
Map<String,JobType> |
getallJobTypes()
Returns a map containing all the available JobType objects paired with their names. |
Map<String,DataType<? extends Resource>> |
getDataTypes()
Returns the list of available data types |
List<JobType> |
getJobInstancesForJobType(String jobTypeName)
Returns all the instances of a given job type in the active scope |
List<JobType> |
getJobs()
Returns the list of available jobs |
JobType |
getJobTypeByName(String jobTypeName)
Returns the JobType object corresponding to a given job type name |
ResourceCache |
getResourceCache()
Returns the ResourceCache object used by this BootstrappingConfiguration object |
JobType |
getSubmittedJobInstanceByUID(String jobUID)
Returns a submitted job instance in the active scope, given its UID |
List<JobType> |
getSubmittedJobInstances()
Returns the list of submitted job instances in the active scope |
Map<String,ExecutionEntity> |
getTaskTypes()
Returns the list of available task types |
void |
initialize(org.gcube.common.core.scope.GCUBEScope scope)
Reads the configuration for the given scope and initializes the internal structures |
void |
jobInChainCompleted(String jobChainUID,
JobType completedJob)
|
void |
jobInChainFailed(String jobChainUID,
JobType failedJob)
|
ExecutionEntity |
newTaskObject(String taskTypeName)
Creates and returns a new instance of the object representing the task with the given name. |
ExecutionEntity |
parseJobExecutionEntity(Element xml)
Parses a XML fragment describing an execution entity inside a job and returns an appropriate object describing it. |
void |
removeSubmittedJobInstance(String jobUID)
Removes a submitted (stopped) job instance from the list of submitted jobs |
String |
submitJobForExecution(String jobUID,
EntityExecutionData eed,
Map<String,String> userInputs)
Submits a new instance of the job with the given UID for execution |
String |
submitJobsForExecution(ArrayList<String> jobsUIDs,
EntityExecutionData eed,
Map<String,String> userInputs)
Submits a list of jobs Submits a new instance of the job with the given UID for execution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BootstrappingConfiguration()
| Method Detail |
|---|
public void initialize(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
scope -
Exceptionpublic ResourceCache getResourceCache()
ResourceCache object used by this BootstrappingConfiguration object
ResourceCache object
public ExecutionEntity parseJobExecutionEntity(Element xml)
throws Exception
xml - the XML fragment to parse
Exceptionpublic ExecutionEntity newTaskObject(String taskTypeName)
taskTypeName - public Map<String,DataType<? extends Resource>> getDataTypes()
public Map<String,ExecutionEntity> getTaskTypes()
public List<JobType> getJobs()
public Map<String,List<JobType>> getAllJobsPerJobType()
public void addJobInstance(String jobTypeName,
JobType jobInstance)
jobTypeName - the job type namejobInstance - the job instance to addpublic void clearAllJobInstances()
public void clearJobTypeInstances(String jobTypeName)
jobTypeName - the job type namepublic Map<String,List<JobType>> getAllJobInstances()
public List<JobType> getJobInstancesForJobType(String jobTypeName)
public void addSubmittedJobInstance(JobType jobInstance)
jobInstance - the submitted jobpublic void removeSubmittedJobInstance(String jobUID)
jobUID - the UID of the job instance to removepublic List<JobType> getSubmittedJobInstances()
public JobType getSubmittedJobInstanceByUID(String jobUID)
public String submitJobForExecution(String jobUID,
EntityExecutionData eed,
Map<String,String> userInputs)
throws Exception
jobUID - the UID of the job to submiteed - the EntityExecutionData object to be used during the job's execution
Exception
public String submitJobsForExecution(ArrayList<String> jobsUIDs,
EntityExecutionData eed,
Map<String,String> userInputs)
throws Exception
jobUID - the UID of the job to submiteed - the EntityExecutionData object to be used during the job's execution
Exception
public void jobInChainCompleted(String jobChainUID,
JobType completedJob)
public void jobInChainFailed(String jobChainUID,
JobType failedJob)
public JobType getJobTypeByName(String jobTypeName)
jobTypeName -
public Map<String,JobType> getallJobTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||