public interface ShardedJobHandler
ShardedJobService
will enqueue task
queue tasks that send requests to the URLs specified in
ShardedJobSettings
. It is the user's responsibility to arrange
for these requests to be passed back into completeShard(java.lang.String, java.lang.String)
and runTask(java.lang.String, java.lang.String, int)
.Modifier and Type | Field and Description |
---|---|
static String |
JOB_ID_PARAM |
static String |
SEQUENCE_NUMBER_PARAM |
static String |
TASK_ID_PARAM |
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. |
void |
runTask(String jobId,
String taskId,
int sequenceNumber)
Is invoked by the servlet that handles
ShardedJobSettings.getWorkerPath() to run a task. |
static final String JOB_ID_PARAM
static final String TASK_ID_PARAM
static final String SEQUENCE_NUMBER_PARAM
void completeShard(String jobId, String taskId)
ShardedJobSettings.getControllerPath()
when a shard has completed.void runTask(String jobId, String taskId, int sequenceNumber)
ShardedJobSettings.getWorkerPath()
to run a task.Copyright © 2015 Google. All rights reserved.