org.infinispan.config
Interface GlobalConfiguration.GlobalJmxStatisticsConfig

All Known Implementing Classes:
GlobalConfiguration.GlobalJmxStatisticsType
Enclosing class:
GlobalConfiguration

public static interface GlobalConfiguration.GlobalJmxStatisticsConfig

Configures whether global statistics are gathered and reported via JMX for all caches under this cache manager.

Since:
5.0
Author:
Vladimir Blagojevic

Method Summary
 GlobalConfiguration.GlobalJmxStatisticsConfig allowDuplicateDomains(Boolean allowDuplicateDomains)
          If true, multiple cache manager instances could be configured under the same configured JMX domain.
 GlobalConfiguration.GlobalJmxStatisticsConfig cacheManagerName(String cacheManagerName)
          If JMX statistics are enabled, this property represents the name of this cache manager.
 GlobalConfiguration.GlobalJmxStatisticsConfig enabled(Boolean enabled)
          Toggle to enable/disable global statistics being exported via JMX
 GlobalConfiguration.GlobalJmxStatisticsConfig jmxDomain(String jmxDomain)
          If JMX statistics are enabled then all 'published' JMX objects will appear under this name.
 GlobalConfiguration.GlobalJmxStatisticsConfig mBeanServerLookup(Class<? extends MBeanServerLookup> beanServerLookupClass)
          Instance of class that will attempt to locate a JMX MBean server to bind to
 GlobalConfiguration.GlobalJmxStatisticsConfig setProperties(Properties p)
          Sets properties which are then passed to the MBean Server Lookup implementation specified.
 GlobalConfiguration.GlobalJmxStatisticsConfig usingMBeanServerLookupInstance(MBeanServerLookup MBeanServerLookupInstance)
          Sets the instance of the MBeanServerLookup class to be used to bound JMX MBeans to.
 

Method Detail

enabled

GlobalConfiguration.GlobalJmxStatisticsConfig enabled(Boolean enabled)
Toggle to enable/disable global statistics being exported via JMX

Parameters:
exposeGlobalJmxStatistics -

setProperties

GlobalConfiguration.GlobalJmxStatisticsConfig setProperties(Properties p)
Sets properties which are then passed to the MBean Server Lookup implementation specified.

Parameters:
properties - properties to pass to the MBean Server Lookup

jmxDomain

GlobalConfiguration.GlobalJmxStatisticsConfig jmxDomain(String jmxDomain)
If JMX statistics are enabled then all 'published' JMX objects will appear under this name. This is optional, if not specified an object name will be created for you by default.

Parameters:
jmxObjectName -

mBeanServerLookup

GlobalConfiguration.GlobalJmxStatisticsConfig mBeanServerLookup(Class<? extends MBeanServerLookup> beanServerLookupClass)
Instance of class that will attempt to locate a JMX MBean server to bind to

Parameters:
mBeanServerLookupClass - MBean Server Lookup class implementation

allowDuplicateDomains

GlobalConfiguration.GlobalJmxStatisticsConfig allowDuplicateDomains(Boolean allowDuplicateDomains)
If true, multiple cache manager instances could be configured under the same configured JMX domain. Each cache manager will in practice use a different JMX domain that has been calculated based on the configured one by adding an incrementing index to it.

Parameters:
allowDuplicateDomains -

cacheManagerName

GlobalConfiguration.GlobalJmxStatisticsConfig cacheManagerName(String cacheManagerName)
If JMX statistics are enabled, this property represents the name of this cache manager. It offers the possibility for clients to provide a user-defined name to the cache manager which later can be used to identify the cache manager within a JMX based management tool amongst other cache managers that might be running under the same JVM.

Parameters:
cacheManagerName -

usingMBeanServerLookupInstance

GlobalConfiguration.GlobalJmxStatisticsConfig usingMBeanServerLookupInstance(MBeanServerLookup MBeanServerLookupInstance)
Sets the instance of the MBeanServerLookup class to be used to bound JMX MBeans to.

Parameters:
mBeanServerLookupInstance - An instance of MBeanServerLookup


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