org.ow2.jonas.deployment.clusterd.lib
Class ClusterDaemonConfigurationManager

java.lang.Object
  extended by org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
      extended by org.ow2.jonas.deployment.clusterd.lib.ClusterDaemonConfigurationManager
All Implemented Interfaces:
DeploymentDescManager

public class ClusterDaemonConfigurationManager
extends AbsDeploymentDescManager

Description of the cluster daemon configuration

Author:
Benoit Pelletier

Field Summary
static String CLUSTERD_FILE_NAME
          Path of the clusterd.xml configuration file
 
Fields inherited from class org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
LINK_SEPARATOR
 
Method Summary
static ClusterDaemonConfiguration getClusterDaemonConfiguration(String clusterDaemonFileName, ClassLoader classLoaderForCls)
          Get an instance of a ClusterDaemonConfiguration by parsing the clusterd.xml configuration file.
static String getClusterDaemonFileName(String clusterDaemonFileName)
          Gets the cluster daemon config file.
static boolean getParsingWithValidation()
          Controls whether the parser is reporting all validity errors.
static ClusterDaemon loadClusterDaemon(Reader reader, String fileName)
          Load the clusterd.xml file.
static void setParsingWithValidation(boolean validation)
          Controls whether the parser is reporting all validity errors.
 
Methods inherited from class org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
containsResource, findJonasServiceRef, mergeWebServiceRef, xmlContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLUSTERD_FILE_NAME

public static final String CLUSTERD_FILE_NAME
Path of the clusterd.xml configuration file

See Also:
Constant Field Values
Method Detail

getClusterDaemonConfiguration

public static ClusterDaemonConfiguration getClusterDaemonConfiguration(String clusterDaemonFileName,
                                                                       ClassLoader classLoaderForCls)
                                                                throws ClusterDaemonConfigurationException
Get an instance of a ClusterDaemonConfiguration by parsing the clusterd.xml configuration file.

Parameters:
clusterDaemonFileName - used when specific cluster daemon configuration file name has to be used
classLoaderForCls - the classloader for the classes.
Returns:
a ClusterDaemonConfiguration instance by parsing the clusterd.xml file
Throws:
ClusterDaemonConfigurationException - if the clusterd.xml file is corrupted.

getClusterDaemonFileName

public static String getClusterDaemonFileName(String clusterDaemonFileName)
Gets the cluster daemon config file. Default is clusterd.xml

Parameters:
clusterDaemonFileName -
Returns:
cluster daemon configuration file name.

loadClusterDaemon

public static ClusterDaemon loadClusterDaemon(Reader reader,
                                              String fileName)
                                       throws ClusterDaemonConfigurationException
Load the clusterd.xml file.

Parameters:
reader - the Reader of the XML file.
fileName - the name of the file (clusterd.xml).
Returns:
a ClusterDaemon object.
Throws:
ClusterDaemonConfigurationException - if the file is corrupted.

getParsingWithValidation

public static boolean getParsingWithValidation()
Controls whether the parser is reporting all validity errors.

Returns:
if true, all external entities will be read.

setParsingWithValidation

public static void setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors.

Parameters:
validation - if true, all external entities will be read.


Copyright © 2010 OW2 Consortium. All Rights Reserved.