public class CheckInstance extends java.lang.Object
CheckInstances of one
CheckImplementationBase subtype can exist in order to be executed in
parallel by multiple worker threads (each CheckInstance is backed by
a separate instance of the CheckImplementationBase subtype).| Constructor and Description |
|---|
CheckInstance(CheckInfo checkInfo)
Creates a new check instance with the given check info.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this check with the given context.
|
CheckImplementationBase |
getCheckImplementation() |
CheckInfo |
getCheckInfo() |
void |
initialize()
Initializes the check.
|
void |
initializeAndSetContext(ICheckContext context)
Initializes the underlying check implementation (calls
CheckImplementationBase.initialize()) and then sets the check context
of the underlying check implementation to the given one. |
<T> void |
setOption(java.lang.String name,
T value)
Sets the option with the given name to the given value.
|
public CheckInstance(CheckInfo checkInfo) throws CheckException
CheckExceptionpublic void initialize() throws CheckException
CheckExceptionpublic void execute() throws CheckException
CheckExceptionpublic CheckImplementationBase getCheckImplementation()
checkImplementationpublic CheckInfo getCheckInfo()
checkInfopublic void initializeAndSetContext(ICheckContext context) throws CheckException
CheckImplementationBase.initialize()) and then sets the check context
of the underlying check implementation to the given one.CheckExceptionpublic <T> void setOption(java.lang.String name, T value)