org.jboss.jms.client
Class FailoverCommandCenter
java.lang.Object
org.jboss.jms.client.FailoverCommandCenter
public class FailoverCommandCenter
- extends java.lang.Object
The class in charge with performing the failover.
- Version:
- $Revision: 3248 $
$Id: FailoverCommandCenter.java 3248 2007-10-26 20:14:06Z timfox $
- Author:
- Ovidiu Feodorov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FailoverCommandCenter
public FailoverCommandCenter(ConnectionState state)
setState
public void setState(ConnectionState state)
failureDetected
public boolean failureDetected(java.lang.Throwable reason,
FailureDetector source,
JMSRemotingConnection remotingConnection)
throws java.lang.Exception
- Method called by failure detection components (FailoverValveInterceptors and
ConnectionListeners) when they have reasons to believe that a server failure occured.
Returns true if the failover command centre handled the exception gracefully and failover completed
or false if it didn't and failover did not occur
- Throws:
java.lang.Exception
registerFailoverListener
public void registerFailoverListener(FailoverListener listener)
unregisterFailoverListener
public boolean unregisterFailoverListener(FailoverListener listener)
getValve
public FailoverValve2 getValve()
getRemotingConnection
public JMSRemotingConnection getRemotingConnection()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2006 JBoss Inc. All Rights Reserved.