public interface ShardedJobService
Modifier and Type | Method and Description |
---|---|
void |
abortJob(String jobId)
Aborts execution of the job with the given ID.
|
boolean |
cleanupJob(String jobId)
Deletes all data of a completed job with the given ID.
|
ShardedJobState |
getJobState(String jobId)
Returns the state of the job with the given ID.
|
Iterator<IncrementalTaskState<IncrementalTask>> |
lookupTasks(ShardedJobState state)
Returns the tasks associated with this ShardedJob.
|
<T extends IncrementalTask> |
startJob(String jobId,
List<? extends T> initialTasks,
ShardedJobController<T> controller,
ShardedJobSettings settings)
Starts a new sharded job with the given ID and parameters.
|
<T extends IncrementalTask> void startJob(String jobId, List<? extends T> initialTasks, ShardedJobController<T> controller, ShardedJobSettings settings)
cleanupJob(java.lang.String)
is called in between.T
- type of tasks that the job consists ofShardedJobState getJobState(String jobId)
Iterator<IncrementalTaskState<IncrementalTask>> lookupTasks(ShardedJobState state)
void abortJob(String jobId)
boolean cleanupJob(String jobId)
Copyright © 2015 Google. All rights reserved.