org.objectweb.jonas.jmx
Class ManagementReprLoader

java.lang.Object
  extended byorg.objectweb.jonas.jmx.ManagementReprLoader

public class ManagementReprLoader
extends java.lang.Object

Author:
Adriana Danes This class allows to load a suitable ManagementRepr in the JonasMaanagementRepr class. This operation is necessary to initilize and then possibly change the management context. A management context is characterized by data allowing to manage a JOnAS app server instance:

Method Summary
static void loadServerRepr(java.lang.String serverName)
          Create a ManagementRepr for the given server, then update JonasManagementRepr
static void loadServerRepr(java.lang.String serverName, java.lang.String currentServerName)
          This method is used to switch from a managed server to another.
static void loadServerReprForCluster(java.lang.String serverName, javax.management.MBeanServerConnection connection)
          Update the JonasManagementRepr datastructure () in order to easilly invoke operations on MBeans corresponding to a managed server in domain/cluster
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadServerRepr

public static void loadServerRepr(java.lang.String serverName,
                                  java.lang.String currentServerName)
This method is used to switch from a managed server to another. It creates a ManagementRepr for the given server, then update JonasManagementRepr.

Parameters:
serverName - the name of the server to be managed
currentServerName - the name of the server which is currently managed

loadServerRepr

public static void loadServerRepr(java.lang.String serverName)
Create a ManagementRepr for the given server, then update JonasManagementRepr

Parameters:
serverName - the name of the server to be managed

loadServerReprForCluster

public static void loadServerReprForCluster(java.lang.String serverName,
                                            javax.management.MBeanServerConnection connection)
Update the JonasManagementRepr datastructure () in order to easilly invoke operations on MBeans corresponding to a managed server in domain/cluster

Parameters:
serverName -
connection -