public class ExecutionManager
extends akka.actor.UntypedActor
Modifier and Type | Field and Description |
---|---|
protected com.ning.http.client.AsyncHttpClient |
asyncHttpClientGlobal
The async http client global.
|
protected akka.actor.ActorRef |
batchSenderAsstManager
The batch sender asst manager.
|
protected akka.actor.ActorRef |
director
The director.
|
protected long |
endTime
The end time.
|
protected HttpMeta |
httpMeta
The command metadata.
|
private static org.slf4j.Logger |
logger
The logger.
|
static int |
REDUCE_LEN
The Constant REDUCE_LEN.
|
protected int |
requestCount
The request count.
|
protected int |
responseCount
The response count.
|
protected java.util.Map<java.lang.String,ResponseOnSingleTask> |
responseMap
The response map.
|
protected long |
startTime
The start time.
|
protected TargetHostMeta |
targetHostMeta
The node group metadata.
|
protected ParallelTask |
task
The parallel task.
|
protected java.lang.String |
taskId
The task id.
|
protected java.lang.String |
taskIdTrim
The task id trim.
|
protected akka.actor.Cancellable |
timeoutMessageCancellable
The timeout message cancellable.
|
protected boolean |
wasIssuedCancel
The was issued cancel.
|
protected java.util.Map<java.lang.String,akka.actor.ActorRef> |
workers
The workers.
|
Constructor and Description |
---|
ExecutionManager(ParallelTask task)
Instantiates a new command manager.
|
Modifier and Type | Method and Description |
---|---|
private void |
cancelRequestAndWorkerOnHost(java.util.List<java.lang.String> targetHosts)
Cancel request and worker on host.
|
private void |
cancelRequestAndWorkers()
Cancel request and workers.
|
void |
onReceive(java.lang.Object message) |
private void |
reply(ParallelTaskState state,
java.lang.Exception t)
reply will terminal the actor and return the results.
|
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, getContext, getSelf, getSender, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandled
private static org.slf4j.Logger logger
protected int responseCount
protected int requestCount
protected long startTime
protected boolean wasIssuedCancel
protected long endTime
protected akka.actor.ActorRef director
protected final java.util.Map<java.lang.String,akka.actor.ActorRef> workers
protected akka.actor.ActorRef batchSenderAsstManager
protected final java.util.Map<java.lang.String,ResponseOnSingleTask> responseMap
protected java.lang.String taskId
protected java.lang.String taskIdTrim
protected akka.actor.Cancellable timeoutMessageCancellable
protected com.ning.http.client.AsyncHttpClient asyncHttpClientGlobal
protected ParallelTask task
protected HttpMeta httpMeta
protected TargetHostMeta targetHostMeta
public static final int REDUCE_LEN
public ExecutionManager(ParallelTask task)
task
- the taskpublic void onReceive(java.lang.Object message)
onReceive
in class akka.actor.UntypedActor
private void reply(ParallelTaskState state, java.lang.Exception t)
state
- the statet
- the exceptionprivate void cancelRequestAndWorkers()
private void cancelRequestAndWorkerOnHost(java.util.List<java.lang.String> targetHosts)
targetHosts
- the target hosts