T - type of tasks that the job being processed consists ofpublic class ShardedJobRunner<T extends IncrementalTask> extends Object implements ShardedJobHandler
ShardedJobServiceImpl that implements
all the functionality but assumes fixed types for <T>.| Modifier and Type | Field and Description |
|---|---|
static com.google.appengine.tools.cloudstorage.RetryParams |
DATASTORE_RETRY_FOREVER_PARAMS |
static com.google.appengine.tools.cloudstorage.ExceptionHandler |
EXCEPTION_HANDLER |
JOB_ID_PARAM, SEQUENCE_NUMBER_PARAM, TASK_ID_PARAM| Constructor and Description |
|---|
ShardedJobRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
completeShard(String jobId,
String taskId)
Is invoked by the servlet that handles
ShardedJobSettings.getControllerPath() when a shard has completed. |
static String |
getTaskId(String jobId,
int taskNumber) |
void |
runTask(String jobId,
String taskId,
int sequenceNumber)
Is invoked by the servlet that handles
ShardedJobSettings.getWorkerPath() to run a task. |
public static final com.google.appengine.tools.cloudstorage.RetryParams DATASTORE_RETRY_FOREVER_PARAMS
public static final com.google.appengine.tools.cloudstorage.ExceptionHandler EXCEPTION_HANDLER
public void completeShard(String jobId, String taskId)
ShardedJobHandlerShardedJobSettings.getControllerPath() when a shard has completed.completeShard in interface ShardedJobHandlerpublic void runTask(String jobId, String taskId, int sequenceNumber)
ShardedJobHandlerShardedJobSettings.getWorkerPath() to run a task.runTask in interface ShardedJobHandlerCopyright © 2015 Google. All rights reserved.