Rio Project 4.2 API Documentation



org.rioproject.fdh
Class FaultDetectionHandlerFactory

java.lang.Object
  extended by org.rioproject.fdh.FaultDetectionHandlerFactory

public class FaultDetectionHandlerFactory
extends Object

The FaultDetectionHandlerFactory class provides static methods to create FaultDetectionHandler instances

Author:
Dennis Reedy

Constructor Summary
FaultDetectionHandlerFactory()
           
 
Method Summary
static ClassBundle getClassBundle(String fdhClassName, List<String> configArgs)
          Get the ClassBundle for a FaultDetectionHandler declaration
static ClassBundle getClassBundle(String fdhClassName, String configuration)
          Get the ClassBundle for a FaultDetectionHandler declaration
static ClassBundle getClassBundle(String fdhClassName, String[] configArgs)
          Get the ClassBundle for a FaultDetectionHandler declaration
static FaultDetectionHandler<ServiceID> getFaultDetectionHandler(AssociationDescriptor aDesc, ClassLoader cl)
          Get a FaultDetectionHandler from the AssociationDescriptor
static FaultDetectionHandler<ServiceID> getFaultDetectionHandler(ClassBundle fdhBundle, ClassLoader cl)
          Load the FaultDetectionHandler from a ClassBundle
static FaultDetectionHandler<ServiceID> getFaultDetectionHandler(ServiceElement sElem, ClassLoader cl)
          Get a FaultDetectionHandler from the ServiceElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultDetectionHandlerFactory

public FaultDetectionHandlerFactory()
Method Detail

getFaultDetectionHandler

public static FaultDetectionHandler<ServiceID> getFaultDetectionHandler(ServiceElement sElem,
                                                                        ClassLoader cl)
                                                                 throws Exception
Get a FaultDetectionHandler from the ServiceElement

Parameters:
sElem - The ServiceElement
cl - The delegation ClassLoader used to load the FaultDetectionHandler, or the current thread's context class loader if cl is null.
Returns:
A FaultDetectionHandler created and initialized. A new FaultDetectionHandler will be created each time. If there are problems creating the FaultDetectionHandler a null will be returned
Throws:
Exception - If there are errors creating the FaultDetectionHandler

getFaultDetectionHandler

public static FaultDetectionHandler<ServiceID> getFaultDetectionHandler(AssociationDescriptor aDesc,
                                                                        ClassLoader cl)
                                                                 throws Exception
Get a FaultDetectionHandler from the AssociationDescriptor

Parameters:
aDesc - The AssociationDescriptor
cl - The delegation ClassLoader used to load the FaultDetectionHandler, or the current thread's context class loader if cl is null.
Returns:
A FaultDetectionHandler created and initialized. A new FaultDetectionHandler will be created each time. If there are problems creating the FaultDetectionHandler a null will be returned
Throws:
Exception - If there are errors creating the FaultDetectionHandler

getFaultDetectionHandler

public static FaultDetectionHandler<ServiceID> getFaultDetectionHandler(ClassBundle fdhBundle,
                                                                        ClassLoader cl)
                                                                 throws Exception
Load the FaultDetectionHandler from a ClassBundle

Parameters:
fdhBundle - The ClassBundle
cl - The delegation ClassLoader used to load the FaultDetectionHandler, or the current thread's context class loader if cl is null.
Returns:
A FaultDetectionHandler created and initialized. A new FaultDetectionHandler will be created each time. If the fdhBundle is null, an AdminFaultDetectionHandler will be created. If there are problems creating the FaultDetectionHandler a null will be returned
Throws:
Exception - If there are errors creating the FaultDetectionHandler

getClassBundle

public static ClassBundle getClassBundle(String fdhClassName,
                                         String configuration)
Get the ClassBundle for a FaultDetectionHandler declaration

Parameters:
fdhClassName - The class name of the FaultDetectionHandler
configuration - Configuration arguments
Returns:
A ClassBundle created based on the input arguments

getClassBundle

public static ClassBundle getClassBundle(String fdhClassName,
                                         String[] configArgs)
Get the ClassBundle for a FaultDetectionHandler declaration

Parameters:
fdhClassName - The class name of the FaultDetectionHandler
configArgs - Configuration arguments
Returns:
A ClassBundle created based on the input arguments

getClassBundle

public static ClassBundle getClassBundle(String fdhClassName,
                                         List<String> configArgs)
Get the ClassBundle for a FaultDetectionHandler declaration

Parameters:
fdhClassName - The class name of the FaultDetectionHandler
configArgs - List of configuration arguments
Returns:
A ClassBundle created based on the input arguments

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.