org.rhq.enterprise.communications.util
Class CommUtils

java.lang.Object
  extended by org.rhq.enterprise.communications.util.CommUtils

public abstract class CommUtils
extends Object

Just a place where basic comm utility methods are placed for use by anything that needs to use the comm layer.

Author:
John Mazzitelli

Constructor Summary
CommUtils()
           
 
Method Summary
static boolean isExceptionFailoverable(Throwable t)
          Examines the given exception and determines if failing over to another server might help.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommUtils

public CommUtils()
Method Detail

isExceptionFailoverable

public static boolean isExceptionFailoverable(Throwable t)
Examines the given exception and determines if failing over to another server might help. Typically, this method will look for "cannot connect" type exceptions.

Parameters:
t - the exception to examine
Returns:
true if failing over to another server might help; false if there is nothing about the exception that would lead us to believe another server would produce a different result.


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.