org.infinispan.configuration.global
Class GlobalJmxStatisticsConfigurationBuilder

java.lang.Object
  extended by org.infinispan.configuration.global.GlobalJmxStatisticsConfigurationBuilder
All Implemented Interfaces:
GlobalConfigurationChildBuilder

public class GlobalJmxStatisticsConfigurationBuilder
extends Object

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


Method Summary
 GlobalJmxStatisticsConfigurationBuilder addProperty(String key, String value)
           
 GlobalJmxStatisticsConfigurationBuilder allowDuplicateDomains(Boolean allowDuplicateDomains)
          If true, multiple cache manager instances could be configured under the same configured JMX domain.
 ExecutorFactoryConfigurationBuilder asyncListenerExecutor()
           
 ExecutorFactoryConfigurationBuilder asyncTransportExecutor()
           
 GlobalConfiguration build()
           
 GlobalJmxStatisticsConfigurationBuilder cacheManagerName(String cacheManagerName)
          If JMX statistics are enabled, this property represents the name of this cache manager.
 GlobalJmxStatisticsConfigurationBuilder disable()
           
 GlobalJmxStatisticsConfigurationBuilder enable()
           
 GlobalJmxStatisticsConfigurationBuilder enabled(boolean enabled)
           
 boolean equals(Object o)
           
 ScheduledExecutorFactoryConfigurationBuilder evictionScheduledExecutor()
           
protected  GlobalConfigurationBuilder getGlobalConfig()
           
 GlobalJmxStatisticsConfigurationBuilder globalJmxStatistics()
           
 int hashCode()
           
 GlobalJmxStatisticsConfigurationBuilder jmxDomain(String jmxDomain)
          If JMX statistics are enabled then all 'published' JMX objects will appear under this name.
 GlobalJmxStatisticsConfigurationBuilder mBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance)
          Sets the instance of the MBeanServerLookup class to be used to bound JMX MBeans to.
 ScheduledExecutorFactoryConfigurationBuilder replicationQueueScheduledExecutor()
           
 SerializationConfigurationBuilder serialization()
           
 ShutdownConfigurationBuilder shutdown()
           
 String toString()
           
 TransportConfigurationBuilder transport()
           
 GlobalJmxStatisticsConfigurationBuilder withProperties(Properties properties)
          Sets properties which are then passed to the MBean Server Lookup implementation specified.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

withProperties

public GlobalJmxStatisticsConfigurationBuilder withProperties(Properties properties)
Sets properties which are then passed to the MBean Server Lookup implementation specified.

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

addProperty

public GlobalJmxStatisticsConfigurationBuilder addProperty(String key,
                                                           String value)

jmxDomain

public GlobalJmxStatisticsConfigurationBuilder 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:
jmxDomain -

allowDuplicateDomains

public GlobalJmxStatisticsConfigurationBuilder 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

public GlobalJmxStatisticsConfigurationBuilder 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 -

mBeanServerLookup

public GlobalJmxStatisticsConfigurationBuilder mBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance)
Sets the instance of the MBeanServerLookup class to be used to bound JMX MBeans to.

Parameters:
mBeanServerLookupInstance - An instance of MBeanServerLookup

disable

public GlobalJmxStatisticsConfigurationBuilder disable()

enable

public GlobalJmxStatisticsConfigurationBuilder enable()

enabled

public GlobalJmxStatisticsConfigurationBuilder enabled(boolean enabled)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getGlobalConfig

protected GlobalConfigurationBuilder getGlobalConfig()

transport

public TransportConfigurationBuilder transport()
Specified by:
transport in interface GlobalConfigurationChildBuilder

globalJmxStatistics

public GlobalJmxStatisticsConfigurationBuilder globalJmxStatistics()
Specified by:
globalJmxStatistics in interface GlobalConfigurationChildBuilder

serialization

public SerializationConfigurationBuilder serialization()
Specified by:
serialization in interface GlobalConfigurationChildBuilder

asyncListenerExecutor

public ExecutorFactoryConfigurationBuilder asyncListenerExecutor()
Specified by:
asyncListenerExecutor in interface GlobalConfigurationChildBuilder

asyncTransportExecutor

public ExecutorFactoryConfigurationBuilder asyncTransportExecutor()
Specified by:
asyncTransportExecutor in interface GlobalConfigurationChildBuilder

evictionScheduledExecutor

public ScheduledExecutorFactoryConfigurationBuilder evictionScheduledExecutor()
Specified by:
evictionScheduledExecutor in interface GlobalConfigurationChildBuilder

replicationQueueScheduledExecutor

public ScheduledExecutorFactoryConfigurationBuilder replicationQueueScheduledExecutor()
Specified by:
replicationQueueScheduledExecutor in interface GlobalConfigurationChildBuilder

shutdown

public ShutdownConfigurationBuilder shutdown()
Specified by:
shutdown in interface GlobalConfigurationChildBuilder

build

public GlobalConfiguration build()
Specified by:
build in interface GlobalConfigurationChildBuilder

-->

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