public final class ExecutionControls extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionControls.ControlsOptionValidator
The JSON specified for the
ExecConstants.DRILLBIT_CONTROL_INJECTIONS
option is validated using this class. |
static class |
ExecutionControls.InjectionMixIn |
Modifier and Type | Field and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
controlsOptionMapper |
static String |
EMPTY_CONTROLS
The default value for controls.
|
Constructor and Description |
---|
ExecutionControls(OptionManager options) |
ExecutionControls(OptionManager options,
CoordinationProtos.DrillbitEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
CountDownLatchInjection |
lookupCountDownLatchInjection(ExecutionControlsInjector injector,
String desc)
Look for a count down latch injection matching the given injector, site descriptor, and endpoint.
|
ExceptionInjection |
lookupExceptionInjection(ExecutionControlsInjector injector,
String desc)
Look for an exception injection matching the given injector, site descriptor, and endpoint.
|
PauseInjection |
lookupPauseInjection(ExecutionControlsInjector injector,
String desc)
Look for an pause injection matching the given injector, site descriptor, and endpoint.
|
void |
unpauseAll()
This method resumes all pauses within the current context (QueryContext or FragmentContext).
|
static void |
validateControlsString(String jsonString) |
public static final com.fasterxml.jackson.databind.ObjectMapper controlsOptionMapper
public static final String EMPTY_CONTROLS
public ExecutionControls(OptionManager options)
public ExecutionControls(OptionManager options, CoordinationProtos.DrillbitEndpoint endpoint)
public static void validateControlsString(String jsonString) throws IOException
IOException
public ExceptionInjection lookupExceptionInjection(ExecutionControlsInjector injector, String desc)
injector
- the injector, which indicates a classdesc
- the injection site descriptionpublic PauseInjection lookupPauseInjection(ExecutionControlsInjector injector, String desc)
injector
- the injector, which indicates a classdesc
- the injection site descriptionpublic CountDownLatchInjection lookupCountDownLatchInjection(ExecutionControlsInjector injector, String desc)
injector
- the injector, which indicates a classdesc
- the injection site descriptionpublic void unpauseAll()
Copyright © 1970 The Apache Software Foundation. All rights reserved.