org.jboss.jms.client
Class FailoverCommandCenter

java.lang.Object
  extended byorg.jboss.jms.client.FailoverCommandCenter

public class FailoverCommandCenter
extends java.lang.Object

The class in charge with performing the failover.

Version:
$Revision: 2430 $ $Id: FailoverCommandCenter.java 2430 2007-02-25 22:22:39Z timfox $
Author:
Ovidiu Feodorov

Constructor Summary
FailoverCommandCenter(ConnectionState state)
           
 
Method Summary
 void failureDetected(java.lang.Throwable reason, FailureDetector source, JMSRemotingConnection remotingConnection)
          Method called by failure detection components (FailoverValveInterceptors and ConnectionListeners) when they have reasons to believe that a server failure occured.
 JMSRemotingConnection getRemotingConnection()
           
 FailoverValve2 getValve()
           
 void registerFailoverListener(FailoverListener listener)
           
 void setState(ConnectionState state)
           
 java.lang.String toString()
           
 boolean unregisterFailoverListener(FailoverListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailoverCommandCenter

public FailoverCommandCenter(ConnectionState state)
Method Detail

setState

public void setState(ConnectionState state)

failureDetected

public void 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.

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()


Copyright © 2006 JBoss Inc. All Rights Reserved.