org.ow2.jonas.cluster.daemon
Class ClusterDaemonTools

java.lang.Object
  extended by org.ow2.jonas.cluster.daemon.ClusterDaemonTools

public class ClusterDaemonTools
extends Object

Commons tools


Field Summary
static Long ONE_MEGA
           
 
Method Summary
static ClusterDaemonConfiguration getCurrentConfiguration()
           
static String getCurrentConfigurationFileName()
           
static String getJmxUrl(String cdName)
          Build the JMX url connection
static String getObjectName()
          Build the Object Name
static String initCarol()
          Init carol.
static void loadClusterDaemonConfiguration(String confFileName)
          Load the cluster daemon configuration (clusterd.xml)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_MEGA

public static Long ONE_MEGA
Method Detail

initCarol

public static String initCarol()
                        throws ClusterDaemonException
Init carol.

Returns:
the configuration file.
Throws:
ClusterDaemonException - if an error occurs

getJmxUrl

public static String getJmxUrl(String cdName)
                        throws ClusterDaemonException
Build the JMX url connection

Parameters:
cdName - cluster daemon name
Returns:
JMX url
Throws:
ClusterDaemonException - if an error occurs

getObjectName

public static String getObjectName()
                            throws ClusterDaemonException
Build the Object Name

Returns:
Object name
Throws:
ClusterDaemonException - if an error occurs

loadClusterDaemonConfiguration

public static void loadClusterDaemonConfiguration(String confFileName)
                                           throws ClusterDaemonException
Load the cluster daemon configuration (clusterd.xml)

Parameters:
confFileName - configuration file to used
Throws:
ClusterDaemonException - if an error occurs

getCurrentConfiguration

public static ClusterDaemonConfiguration getCurrentConfiguration()
Returns:
current configuration

getCurrentConfigurationFileName

public static String getCurrentConfigurationFileName()
Returns:
current configuration


Copyright © 2010 OW2 Consortium. All Rights Reserved.