java.lang.Object
com.pervasive.datarush.cal.ExecutionOptions
Miscellaneous execution options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExecutionOptionsExecution options to run in the master.static final ExecutionOptionsDefault execution options: parallel/distributed, retry disabled -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the number of retries is greater than zero.intReturns the max parallelism.maxParallelism(int maxParallelism) Creates a new ExecutionOptions, with the maximum parallelism set to the specified valueintReturns the maximum number of times a part of a job can fail before we give up.maxRetries(int maxRetries) Creates a new ExecutionOptions, with the maximum retries set to the specified valuebooleanworker()Returns whether this is for a worker.
-
Field Details
-
WORKER
Default execution options: parallel/distributed, retry disabled -
MASTER
Execution options to run in the master. Non parallel and no retries. Runs locally, within the same JVM that submitted.
-
-
Method Details
-
maxRetries
public int maxRetries()Returns the maximum number of times a part of a job can fail before we give up.- Returns:
- the max retries
-
maxRetries
Creates a new ExecutionOptions, with the maximum retries set to the specified value- Parameters:
maxRetries- the max retries- Returns:
- a new ExecutionOptions
-
maxParallelism
public int maxParallelism()Returns the max parallelism.- Returns:
- the max parallelism
-
maxParallelism
Creates a new ExecutionOptions, with the maximum parallelism set to the specified value- Parameters:
maxRetries- the max retries- Returns:
- a new ExecutionOptions
-
worker
public boolean worker()Returns whether this is for a worker.- Returns:
- whether this is for a worker
-
isFaultTolerant
public boolean isFaultTolerant()Returns true if the number of retries is greater than zero.- Returns:
- whether we are fault tolerant
-