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()
Returns unmodifiable set of ignored failure types.
|
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.
|
protected ShutdownPolicy |
shutdownPolicyToHandleFailure()
Returns
ShutdownPolicy to be used when handling critical situation by FailureProcessor mechanism. |
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 ShutdownPolicy shutdownPolicyToHandleFailure()
ShutdownPolicy
to be used when handling critical situation by FailureProcessor mechanism.
IMMEDIATE shutdown policy is used as by default we treat any situation reached Failure Handler
as requiering immediate shutdown.protected abstract boolean handle(Ignite ignite, FailureContext failureCtx)
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024