Uses of Interface
com.onenetwork.platform.grid.GridJob
Package | Description |
---|---|
com.onenetwork.platform.grid |
Interface into One Network's Computational Grid for parallel, dependency-aware task execution.
|
-
Uses of GridJob in com.onenetwork.platform.grid
Methods in com.onenetwork.platform.grid that return GridJob Modifier and Type Method Description GridJob
GridService. awaitJob(java.lang.Long jobId, long intervalInMillis, long maxAwaitInMillis)
Given a job id, waits for the job to either move to either SUCCEEDED or FAILED.GridJob
GridService. getGridJobById(long jobId)
Given a job id, returns the GridJob object.GridJob
GridService. newJob(java.lang.String jobType, java.lang.String jobName)
Creates a new job in memory which can have tasks added in memory, and then the whole thing can be inserted into the database.Methods in com.onenetwork.platform.grid with parameters of type GridJob Modifier and Type Method Description void
GridJobListener. jobFinished(GridJob job)
This method will be called when a job is finished and its status is updated in the DBvoid
GridJob. setJobDependency(GridJob jobDependency)
Set a job that all tasks subsequently added to this job will depend on.void
GridTask. setJobDependency(GridJob job)
Job which must complete before this Task can runvoid
GridJobListener. taskFinished(GridTask task, GridJob job)
This method will be called when a task within a job is finished and the job status is updated in the DBMethod parameters in com.onenetwork.platform.grid with type arguments of type GridJob Modifier and Type Method Description void
GridService. insertJobs(java.util.Collection<GridJob> jobs)
Inserts the given GridJobs (and the tasks they contain) into the database