public class FailoverFailureCallback extends Object implements FailureCallback
FailureCallback that will attempt to failover to another server if appropriate.
This callback will examine the failure exception that was detected and if it is recoverable
by failing over to another server, the agent will be switched to talk to another server found
in the agent failover list and the command will be retried.| Constructor and Description |
|---|
FailoverFailureCallback(AgentMain agent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
failureDetected(RemoteCommunicator remoteCommunicator,
Command command,
CommandResponse response,
Throwable throwable) |
public FailoverFailureCallback(AgentMain agent)
public boolean failureDetected(RemoteCommunicator remoteCommunicator, Command command, CommandResponse response, Throwable throwable)
failureDetected in interface FailureCallbackCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.