org.rhq.enterprise.agent
Class FailoverFailureCallback
java.lang.Object
org.rhq.enterprise.agent.FailoverFailureCallback
- All Implemented Interfaces:
- FailureCallback
public class FailoverFailureCallback
- extends Object
- implements FailureCallback
This is a 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.
- Author:
- John Mazzitelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FailoverFailureCallback
public FailoverFailureCallback(AgentMain agent)
failureDetected
public boolean failureDetected(RemoteCommunicator remoteCommunicator,
Command command,
CommandResponse response,
Throwable throwable)
- Specified by:
failureDetected in interface FailureCallback
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.