- java.lang.Object
-
- com.pervasive.datarush.cal.ExecutionOptions
-
public final class ExecutionOptions extends Object
Miscellaneous execution options.
-
-
Field Summary
Fields Modifier and Type Field Description static ExecutionOptionsMASTERExecution options to run in the master.static ExecutionOptionsWORKERDefault execution options: parallel/distributed, retry disabled
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFaultTolerant()Returns true if the number of retries is greater than zero.intmaxParallelism()Returns the max parallelism.ExecutionOptionsmaxParallelism(int maxParallelism)Creates a new ExecutionOptions, with the maximum parallelism set to the specified valueintmaxRetries()Returns the maximum number of times a part of a job can fail before we give up.ExecutionOptionsmaxRetries(int maxRetries)Creates a new ExecutionOptions, with the maximum retries set to the specified valuebooleanworker()Returns whether this is for a worker.
-
-
-
Field Detail
-
WORKER
public static final ExecutionOptions WORKER
Default execution options: parallel/distributed, retry disabled
-
MASTER
public static final ExecutionOptions MASTER
Execution options to run in the master. Non parallel and no retries. Runs locally, within the same JVM that submitted.
-
-
Method Detail
-
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
public ExecutionOptions maxRetries(int 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
public ExecutionOptions maxParallelism(int 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
-
-