public class CheckInstance extends java.lang.Object
CheckInstance
s 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
CheckException
public void initialize() throws CheckException
CheckException
public void execute() throws CheckException
CheckException
public CheckImplementationBase getCheckImplementation()
checkImplementation
public CheckInfo getCheckInfo()
checkInfo
public void initializeAndSetContext(ICheckContext context) throws CheckException
CheckImplementationBase.initialize()
) and then sets the check context
of the underlying check implementation to the given one.CheckException
public <T> void setOption(java.lang.String name, T value)