T
- Options typepublic interface Runner<T extends Options>
Modifier and Type | Method and Description |
---|---|
void |
halt(T options,
Exception e)
Requests that the run be halted, exact halting conditions and behaviour
is specified by the given options
|
void |
halt(T options,
String message)
Requests that the run be halted, exact halting conditions and behaviour
is specified by the given options
|
void |
reportAfterOperation(T options,
Operation operation,
OperationRun run)
Reports progress after we have run an operation
|
void |
reportAfterOperationMix(T options,
OperationMix mix,
OperationMixRun run)
Reports progress after we complete a run of the operation mix
|
void |
reportBeforeOperation(T options,
Operation operation)
Reports progress before we run an operation
|
void |
reportBeforeOperationMix(T options,
OperationMix mix)
Reports progress before we run an operation mix
|
void |
reportPartialProgress(T options,
String message)
Reports progress with an informational message
|
void |
reportProgress(T options)
Reports a newline as a progress message
|
void |
reportProgress(T options,
String message)
Reports progress with an informational message
|
void |
run(T options)
Runs with the given options
|
void run(T options)
options
- void reportBeforeOperationMix(T options, OperationMix mix)
options
- Optionsmix
- Operation mixvoid reportAfterOperationMix(T options, OperationMix mix, OperationMixRun run)
options
- Optionsmix
- Operation mixrun
- Operation mix run informationvoid reportBeforeOperation(T options, Operation operation)
options
- Optionsoperation
- Operationvoid reportAfterOperation(T options, Operation operation, OperationRun run)
options
- Optionsoperation
- Operationrun
- Run informationvoid reportProgress(T options, String message)
Messages passed to this function will always have a terminating newline character added to them before being sent to listeners
You can configure what happens to the reporting messages by adding
ProgressListener
instances with the
Options.addListener(ProgressListener)
method
options
- Optionsmessage
- Informational Messagevoid reportPartialProgress(T options, String message)
Messages passed to this function are sent to listeners as-is
options
- Optionsmessage
- Informational Messagevoid reportProgress(T options)
options
- Optionsvoid halt(T options, Exception e)
options
- Optionse
- ExceptionCopyright © 2015. All rights reserved.