public class ParallelTaskConfig
extends java.lang.Object
ParallelTask
.
This can be overwritten for each task.
Configs about various timeout, whether to auto save logs / save responses.
whether to enable the capacity scheduler.
Some of the most useful ones we directly have APIs by the ParallelTaskBuilder
will load from the default value from ParallelTaskConfigDefault
Modifier and Type | Field and Description |
---|---|
private int |
actorMaxOperationTimeoutSec
The actor max operation timeout sec.
|
private long |
asstManagerRetryIntervalMillis
The asst manager retry interval millis.
|
private boolean |
autoSaveLogToLocal |
private boolean |
enableCapacityAwareTaskScheduler
The enable capacity protection.
|
private HandlerExecutionLocation |
handlerExecutionLocation |
private boolean |
printHttpTrueHeaderMap
The print http true header map.
|
private boolean |
printPoller |
private boolean |
saveResponseToTask |
private long |
timeoutAskManagerSec
The timeout the director send to the manager to cancel it from outside.
|
private long |
timeoutInManagerSec
The command manager internal timeout and cancel itself time in seconds
Note this may need to be adjusted for long polling jobs.
|
Constructor and Description |
---|
ParallelTaskConfig() |
private long asstManagerRetryIntervalMillis
private int actorMaxOperationTimeoutSec
private long timeoutInManagerSec
private long timeoutAskManagerSec
private boolean printHttpTrueHeaderMap
private boolean printPoller
private boolean saveResponseToTask
private boolean enableCapacityAwareTaskScheduler
details check ParallelTaskManager initTaskScheduler
private boolean autoSaveLogToLocal
private HandlerExecutionLocation handlerExecutionLocation
public long getAsstManagerRetryIntervalMillis()
public void setAsstManagerRetryIntervalMillis(long asstManagerRetryIntervalMillis)
public int getActorMaxOperationTimeoutSec()
public void setActorMaxOperationTimeoutSec(int actorMaxOperationTimeoutSec)
public long getTimeoutInManagerSec()
public void setTimeoutInManagerSec(long timeoutInManagerSec)
public long getTimeoutAskManagerSec()
public void setTimeoutAskManagerSec(long timeoutAskManagerSec)
public boolean isPrintHttpTrueHeaderMap()
public void setPrintHttpTrueHeaderMap(boolean printHttpTrueHeaderMap)
public boolean isPrintPoller()
public void setPrintPoller(boolean printPoller)
public boolean isSaveResponseToTask()
public void setSaveResponseToTask(boolean saveResponseToTask)
public boolean isEnableCapacityAwareTaskScheduler()
public void setEnableCapacityAwareTaskScheduler(boolean enableCapacityAwareTaskScheduler)
public boolean isAutoSaveLogToLocal()
public void setAutoSaveLogToLocal(boolean autoSaveLogToLocal)
public HandlerExecutionLocation getHandlerExecutionLocation()
public void setHandlerExecutionLocation(HandlerExecutionLocation handlerExecutionLocation)
public java.lang.String toString()
toString
in class java.lang.Object