org.jboss.cache.jmx
Class JmxUtil

java.lang.Object
  extended by org.jboss.cache.jmx.JmxUtil

public class JmxUtil
extends Object

Various JMX related utilities

Version:
$Id: JmxUtil.java 6120 2008-06-30 11:58:59Z manik.surtani@jboss.com $
Author:
Jerry Gauthier, Manik Surtani

Field Summary
static String BASE_PREFIX
           
static String CACHE_TYPE_KEY
           
static String CLUSTER_KEY
           
static String INTERCEPTOR_KEY
           
static String JBOSS_CACHE_DOMAIN
           
static String JBOSS_SERVER_DOMAIN
           
static String MBEAN_CLASS_SUFFIX
           
static String NO_CLUSTER_PREFIX
           
static String PLAIN_CACHE_TYPE
           
static String PREFIX
           
static String SERVICE_KEY_NAME
           
static String UNIQUE_ID_KEY
           
 
Constructor Summary
JmxUtil()
           
 
Method Summary
static String getDefaultCacheObjectName(Cache cache)
           
static String getDefaultCacheObjectName(Configuration config, String cacheImplClass)
           
static String getUniqueId(String cacheImplClass)
           
static void registerCacheMBean(MBeanServer server, CacheJmxWrapperMBean cache, String cacheObjectName)
           
static void registerInterceptors(MBeanServer server, List<CommandInterceptor> interceptors, String cacheObjectName)
           
static void unregisterCacheMBean(MBeanServer server, String cacheObjectName)
           
static void unregisterInterceptors(MBeanServer server, List<CommandInterceptor> interceptors, String cacheObjectName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBOSS_SERVER_DOMAIN

public static final String JBOSS_SERVER_DOMAIN
See Also:
Constant Field Values

JBOSS_CACHE_DOMAIN

public static final String JBOSS_CACHE_DOMAIN
See Also:
Constant Field Values

SERVICE_KEY_NAME

public static final String SERVICE_KEY_NAME
See Also:
Constant Field Values

BASE_PREFIX

public static final String BASE_PREFIX
See Also:
Constant Field Values

CLUSTER_KEY

public static final String CLUSTER_KEY
See Also:
Constant Field Values

PREFIX

public static final String PREFIX
See Also:
Constant Field Values

UNIQUE_ID_KEY

public static final String UNIQUE_ID_KEY
See Also:
Constant Field Values

NO_CLUSTER_PREFIX

public static final String NO_CLUSTER_PREFIX
See Also:
Constant Field Values

CACHE_TYPE_KEY

public static final String CACHE_TYPE_KEY
See Also:
Constant Field Values

PLAIN_CACHE_TYPE

public static final String PLAIN_CACHE_TYPE
See Also:
Constant Field Values

MBEAN_CLASS_SUFFIX

public static final String MBEAN_CLASS_SUFFIX
See Also:
Constant Field Values

INTERCEPTOR_KEY

public static final String INTERCEPTOR_KEY
See Also:
Constant Field Values
Constructor Detail

JmxUtil

public JmxUtil()
Method Detail

registerCacheMBean

public static void registerCacheMBean(MBeanServer server,
                                      CacheJmxWrapperMBean cache,
                                      String cacheObjectName)
                               throws JMException
Throws:
JMException

registerInterceptors

public static void registerInterceptors(MBeanServer server,
                                        List<CommandInterceptor> interceptors,
                                        String cacheObjectName)
                                 throws JMException
Throws:
JMException

getDefaultCacheObjectName

public static String getDefaultCacheObjectName(Cache cache)

getDefaultCacheObjectName

public static String getDefaultCacheObjectName(Configuration config,
                                               String cacheImplClass)

getUniqueId

public static String getUniqueId(String cacheImplClass)

unregisterCacheMBean

public static void unregisterCacheMBean(MBeanServer server,
                                        String cacheObjectName)
                                 throws Exception
Throws:
Exception

unregisterInterceptors

public static void unregisterInterceptors(MBeanServer server,
                                          List<CommandInterceptor> interceptors,
                                          String cacheObjectName)
                                   throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.