|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceFailurePolicy
ServiceFailurePolicy is used to control how a Guardable associated with a service is managed by its Guardian after the configured timeout.
Method Summary | |
---|---|
void |
onGuardableRecovery(Guardable guardable, Service service) Take appropriate action after the specified guardable (associated with the specified service) has missed a "soft-timeout" and has entered the "RECOVERY" state. |
void |
onGuardableTerminate(Guardable guardable, Service service) Take appropriate action after the specified guardable (associated with the specified service) has missed a "hard-timeout" and has entered the "TERMINATING" state. |
void |
onServiceFailed(Cluster cluster) Take appropriate action after some service failed to stop. |
Method Detail |
---|
void onGuardableRecovery(Guardable guardable, Service service)
This method will be invoked on a dedicated thread; further failures, hangs or deadlocks of recovery handling logic will not directly affect other healthy service threads.
Note: in general, implementations should call the Guardable.recover()
method on the specified guardable
guardable
- the guardable that entered the RECOVERY stateservice
- the service that the guardable is associated withvoid onGuardableTerminate(Guardable guardable, Service service)
This method will be invoked on a dedicated thread; further failures, hangs or deadlocks of termination handling logic will not directly affect other healthy service threads.
Note: in general, implementations should call the Guardable.terminate()
method on the specified guardable
guardable
- the context that entered the TERMINATING stateservice
- the service that the guardable is associated withvoid onServiceFailed(Cluster cluster)
This method will be invoked on a dedicated thread; further failures, hangs, or deadlocks of failure handling logic will not directly affect other healthy service threads.
Note: it is strongly advised that, at a minimum, any failure policy should attempt to stop the cluster services (e.g. via Cluster.stop()) or otherwise ensure that they are stopped, in order to isolate any failure from the rest of the cluster.
cluster
- the cluster
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |