public abstract class AbstractFailureHandler extends Object implements FailureHandler
FailureHandler
implementations.
Maintains a set of ignored failure types. Failure handler will not invalidate kernal context for this failures
and will not handle it.Constructor and Description |
---|
AbstractFailureHandler() |
Modifier and Type | Method and Description |
---|---|
Set<FailureType> |
getIgnoredFailureTypes() |
protected abstract boolean |
handle(Ignite ignite,
FailureContext failureCtx)
Actual failure handling.
|
boolean |
onFailure(Ignite ignite,
FailureContext failureCtx)
Handles failure occurred on
ignite instance. |
void |
setIgnoredFailureTypes(Set<FailureType> failureTypes)
Sets failure types that must be ignored by failure handler.
|
String |
toString() |
public void setIgnoredFailureTypes(Set<FailureType> failureTypes)
failureTypes
- Set of failure type that must be ignored.FailureType
public Set<FailureType> getIgnoredFailureTypes()
public boolean onFailure(Ignite ignite, FailureContext failureCtx)
ignite
instance.
Failure details is contained in failureCtx
.
Returns true
if kernal context must be invalidated by FailureProcessor
after calling this method.onFailure
in interface FailureHandler
ignite
- Ignite instance.failureCtx
- Failure context.protected abstract boolean handle(Ignite ignite, FailureContext failureCtx)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023