Class GlobalJmxConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.global.GlobalJmxStatisticsConfigurationBuilder
-
- org.infinispan.configuration.global.GlobalJmxConfigurationBuilder
-
- All Implemented Interfaces:
Builder<GlobalJmxConfiguration>
,GlobalConfigurationChildBuilder
public class GlobalJmxConfigurationBuilder extends GlobalJmxStatisticsConfigurationBuilder implements Builder<GlobalJmxConfiguration>
Configures JMX for the cache manager and its caches.- Since:
- 10.1.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GlobalJmxConfigurationBuilder
addProperty(String key, String value)
ThreadPoolConfigurationBuilder
asyncThreadPool()
Configuration for the asynchronous operations thread poolThreadPoolConfigurationBuilder
blockingThreadPool()
Configuration for the blocking thread poolGlobalConfiguration
build()
Builds aGlobalConfiguration
object using the settings applied to this builderGlobalJmxConfigurationBuilder
cacheManagerName(String cacheManagerName)
Deprecated.GlobalJmxConfiguration
create()
Create the configuration beanGlobalConfigurationBuilder
defaultCacheName(String defaultCacheName)
Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache()
.GlobalJmxConfigurationBuilder
disable()
Disables JMX in the cache manager.GlobalJmxConfigurationBuilder
domain(String domain)
If JMX is enabled then all 'published' JMX objects will appear under this name.GlobalJmxConfigurationBuilder
enable()
Enables JMX in the cache manager.boolean
enabled()
GlobalJmxConfigurationBuilder
enabled(boolean enabled)
Enables JMX in the cache manager.ThreadPoolConfigurationBuilder
expirationThreadPool()
Configuration for the expiration thread poolprotected GlobalConfigurationBuilder
getGlobalConfig()
GlobalStateConfigurationBuilder
globalState()
Global state configurationGlobalJmxConfigurationBuilder
jmx()
Global JMX configuration.ThreadPoolConfigurationBuilder
listenerThreadPool()
Configuration for the listener thread poolGlobalJmxConfigurationBuilder
mBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance)
Sets the instance of theMBeanServerLookup
class to be used to bound JMX MBeans to.GlobalMetricsConfigurationBuilder
metrics()
Global microprofile metrics configuration.List<Builder<?>>
modules()
Global modules configurationThreadPoolConfigurationBuilder
nonBlockingThreadPool()
Configuration for the non blocking thread poolThreadPoolConfigurationBuilder
persistenceThreadPool()
Configuration for the persistence thread poolGlobalJmxConfigurationBuilder
read(GlobalJmxConfiguration template)
Reads the configuration from an already created configuration bean into this builder.GlobalSecurityConfigurationBuilder
security()
Security-related configurationSerializationConfigurationBuilder
serialization()
Global serialization (i.e.ShutdownConfigurationBuilder
shutdown()
Shutdown configurationSiteConfigurationBuilder
site()
Cross-site replication configurationThreadPoolConfigurationBuilder
stateTransferThreadPool()
Configuration for the state-transfer thread poolString
toString()
TransportConfigurationBuilder
transport()
Transport-related (i.e.void
validate()
Validate the data in this builder before building the configuration beanGlobalJmxConfigurationBuilder
withProperties(Properties properties)
Sets properties which are then passed to the MBean Server Lookup implementation specified.-
Methods inherited from class org.infinispan.configuration.global.GlobalJmxStatisticsConfigurationBuilder
jmxDomain
-
Methods inherited from interface org.infinispan.configuration.global.GlobalConfigurationChildBuilder
globalJmxStatistics
-
-
-
-
Method Detail
-
withProperties
public GlobalJmxConfigurationBuilder withProperties(Properties properties)
Sets properties which are then passed to the MBean Server Lookup implementation specified.- Specified by:
withProperties
in classGlobalJmxStatisticsConfigurationBuilder
- Parameters:
properties
- properties to pass to the MBean Server Lookup
-
addProperty
public GlobalJmxConfigurationBuilder addProperty(String key, String value)
- Specified by:
addProperty
in classGlobalJmxStatisticsConfigurationBuilder
-
domain
public GlobalJmxConfigurationBuilder domain(String domain)
If JMX is enabled then all 'published' JMX objects will appear under this name. This is optional, if not specified a default domain name will be set by default.- Specified by:
domain
in classGlobalJmxStatisticsConfigurationBuilder
- Parameters:
domain
-
-
cacheManagerName
@Deprecated public GlobalJmxConfigurationBuilder cacheManagerName(String cacheManagerName)
Deprecated.If JMX is 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.- Specified by:
cacheManagerName
in classGlobalJmxStatisticsConfigurationBuilder
-
mBeanServerLookup
public GlobalJmxConfigurationBuilder mBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance)
Sets the instance of theMBeanServerLookup
class to be used to bound JMX MBeans to.- Specified by:
mBeanServerLookup
in classGlobalJmxStatisticsConfigurationBuilder
- Parameters:
mBeanServerLookupInstance
- An instance ofMBeanServerLookup
-
disable
public GlobalJmxConfigurationBuilder disable()
Disables JMX in the cache manager.- Specified by:
disable
in classGlobalJmxStatisticsConfigurationBuilder
-
enable
public GlobalJmxConfigurationBuilder enable()
Enables JMX in the cache manager.- Specified by:
enable
in classGlobalJmxStatisticsConfigurationBuilder
-
enabled
public GlobalJmxConfigurationBuilder enabled(boolean enabled)
Enables JMX in the cache manager.- Specified by:
enabled
in classGlobalJmxStatisticsConfigurationBuilder
-
enabled
public boolean enabled()
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<GlobalJmxConfiguration>
-
create
public GlobalJmxConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<GlobalJmxConfiguration>
- Returns:
-
read
public GlobalJmxConfigurationBuilder read(GlobalJmxConfiguration template)
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<GlobalJmxConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
toString
public String toString()
-
getGlobalConfig
protected GlobalConfigurationBuilder getGlobalConfig()
-
transport
public TransportConfigurationBuilder transport()
Description copied from interface:GlobalConfigurationChildBuilder
Transport-related (i.e. clustering) configuration- Specified by:
transport
in interfaceGlobalConfigurationChildBuilder
-
metrics
public GlobalMetricsConfigurationBuilder metrics()
Description copied from interface:GlobalConfigurationChildBuilder
Global microprofile metrics configuration.- Specified by:
metrics
in interfaceGlobalConfigurationChildBuilder
-
jmx
public GlobalJmxConfigurationBuilder jmx()
Description copied from interface:GlobalConfigurationChildBuilder
Global JMX configuration.- Specified by:
jmx
in interfaceGlobalConfigurationChildBuilder
-
globalState
public GlobalStateConfigurationBuilder globalState()
Description copied from interface:GlobalConfigurationChildBuilder
Global state configuration- Specified by:
globalState
in interfaceGlobalConfigurationChildBuilder
-
serialization
public SerializationConfigurationBuilder serialization()
Description copied from interface:GlobalConfigurationChildBuilder
Global serialization (i.e. marshalling) configuration- Specified by:
serialization
in interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
public ThreadPoolConfigurationBuilder listenerThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the listener thread pool- Specified by:
listenerThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
public ThreadPoolConfigurationBuilder asyncThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the asynchronous operations thread pool- Specified by:
asyncThreadPool
in interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
public ThreadPoolConfigurationBuilder expirationThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the expiration thread pool- Specified by:
expirationThreadPool
in interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
public ThreadPoolConfigurationBuilder persistenceThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the persistence thread pool- Specified by:
persistenceThreadPool
in interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
public ThreadPoolConfigurationBuilder stateTransferThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the state-transfer thread pool- Specified by:
stateTransferThreadPool
in interfaceGlobalConfigurationChildBuilder
-
blockingThreadPool
public ThreadPoolConfigurationBuilder blockingThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the blocking thread pool- Specified by:
blockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
nonBlockingThreadPool
public ThreadPoolConfigurationBuilder nonBlockingThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the non blocking thread pool- Specified by:
nonBlockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
security
public GlobalSecurityConfigurationBuilder security()
Description copied from interface:GlobalConfigurationChildBuilder
Security-related configuration- Specified by:
security
in interfaceGlobalConfigurationChildBuilder
-
shutdown
public ShutdownConfigurationBuilder shutdown()
Description copied from interface:GlobalConfigurationChildBuilder
Shutdown configuration- Specified by:
shutdown
in interfaceGlobalConfigurationChildBuilder
-
site
public SiteConfigurationBuilder site()
Description copied from interface:GlobalConfigurationChildBuilder
Cross-site replication configuration- Specified by:
site
in interfaceGlobalConfigurationChildBuilder
-
modules
public List<Builder<?>> modules()
Description copied from interface:GlobalConfigurationChildBuilder
Global modules configuration- Specified by:
modules
in interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
public GlobalConfigurationBuilder defaultCacheName(String defaultCacheName)
Description copied from interface:GlobalConfigurationChildBuilder
Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache()
. Not- Specified by:
defaultCacheName
in interfaceGlobalConfigurationChildBuilder
-
build
public GlobalConfiguration build()
Description copied from interface:GlobalConfigurationChildBuilder
Builds aGlobalConfiguration
object using the settings applied to this builder- Specified by:
build
in interfaceGlobalConfigurationChildBuilder
-
-