org.objectweb.jonas.cluster.daemon
Class ClusterDaemonTools

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

public class ClusterDaemonTools
extends java.lang.Object

Commons tools


Method Summary
static ClusterDaemonConfiguration getCurrentConfiguration()
           
static java.lang.String getJmxUrl(java.lang.String cdName)
          Build the JMX url connection
static java.lang.String getObjectName()
          Build the Object Name
static void loadClusterDaemonConfiguration(java.lang.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
 

Method Detail

getJmxUrl

public static java.lang.String getJmxUrl(java.lang.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 java.lang.String getObjectName()
                                      throws ClusterDaemonException
Build the Object Name

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

loadClusterDaemonConfiguration

public static void loadClusterDaemonConfiguration(java.lang.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