public class GlobalMetricsConfigurationBuilder extends Object implements Builder<GlobalMetricsConfiguration>
Modifier and Type | Method and Description |
---|---|
ThreadPoolConfigurationBuilder |
asyncThreadPool()
Configuration for the asynchronous operations thread pool
|
ThreadPoolConfigurationBuilder |
blockingThreadPool()
Configuration for the blocking thread pool
|
GlobalConfiguration |
build()
Builds a
GlobalConfiguration object using the settings applied to this builder |
GlobalMetricsConfiguration |
create()
Create the configuration bean
|
GlobalConfigurationBuilder |
defaultCacheName(String defaultCacheName)
Sets the name of the cache that acts as the default cache and is returned by
EmbeddedCacheManager.getCache() . |
boolean |
enabled()
Metrics are enabled if at least one of the metric types is enabled.
|
ThreadPoolConfigurationBuilder |
expirationThreadPool()
Configuration for the expiration thread pool
|
boolean |
gauges()
Are gauges enabled?
|
GlobalMetricsConfigurationBuilder |
gauges(boolean gauges)
Enables or disables gauges.
|
protected GlobalConfigurationBuilder |
getGlobalConfig() |
GlobalStateConfigurationBuilder |
globalState()
Global state configuration
|
boolean |
histograms()
Are histograms enabled?
|
GlobalMetricsConfigurationBuilder |
histograms(boolean histograms)
Enables or disables histograms.
|
GlobalJmxConfigurationBuilder |
jmx()
Global JMX configuration.
|
ThreadPoolConfigurationBuilder |
listenerThreadPool()
Configuration for the listener thread pool
|
GlobalMetricsConfigurationBuilder |
metrics()
Global microprofile metrics configuration.
|
List<Builder<?>> |
modules()
Global modules configuration
|
boolean |
namesAsTags()
Put the cache manager and cache name in tags rather then include them in the metric name.
|
GlobalMetricsConfigurationBuilder |
namesAsTags(boolean namesAsTags)
Put the cache manager and cache name in tags rather then include them in the metric name.
|
ThreadPoolConfigurationBuilder |
nonBlockingThreadPool()
Configuration for the non blocking thread pool
|
ThreadPoolConfigurationBuilder |
persistenceThreadPool()
Configuration for the persistence thread pool
|
String |
prefix()
The global prefix to add to all metric names.
|
GlobalMetricsConfigurationBuilder |
prefix(String prefix)
The global prefix to add to all metric names.
|
GlobalMetricsConfigurationBuilder |
read(GlobalMetricsConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
GlobalSecurityConfigurationBuilder |
security()
Security-related configuration
|
SerializationConfigurationBuilder |
serialization()
Global serialization (i.e.
|
ShutdownConfigurationBuilder |
shutdown()
Shutdown configuration
|
SiteConfigurationBuilder |
site()
Cross-site replication configuration
|
ThreadPoolConfigurationBuilder |
stateTransferThreadPool()
Configuration for the state-transfer thread pool
|
String |
toString() |
TransportConfigurationBuilder |
transport()
Transport-related (i.e.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
globalJmxStatistics
public boolean enabled()
gauges()
, histograms()
.public boolean gauges()
public GlobalMetricsConfigurationBuilder gauges(boolean gauges)
public boolean histograms()
public GlobalMetricsConfigurationBuilder histograms(boolean histograms)
public String prefix()
public GlobalMetricsConfigurationBuilder prefix(String prefix)
public boolean namesAsTags()
public GlobalMetricsConfigurationBuilder namesAsTags(boolean namesAsTags)
public void validate()
Builder
validate
in interface Builder<GlobalMetricsConfiguration>
public GlobalMetricsConfiguration create()
Builder
create
in interface Builder<GlobalMetricsConfiguration>
public GlobalMetricsConfigurationBuilder read(GlobalMetricsConfiguration template)
Builder
read
in interface Builder<GlobalMetricsConfiguration>
template
- the configuration from which to "clone" this config if needed.protected GlobalConfigurationBuilder getGlobalConfig()
public TransportConfigurationBuilder transport()
GlobalConfigurationChildBuilder
transport
in interface GlobalConfigurationChildBuilder
public GlobalMetricsConfigurationBuilder metrics()
GlobalConfigurationChildBuilder
metrics
in interface GlobalConfigurationChildBuilder
public GlobalJmxConfigurationBuilder jmx()
GlobalConfigurationChildBuilder
jmx
in interface GlobalConfigurationChildBuilder
public GlobalStateConfigurationBuilder globalState()
GlobalConfigurationChildBuilder
globalState
in interface GlobalConfigurationChildBuilder
public SerializationConfigurationBuilder serialization()
GlobalConfigurationChildBuilder
serialization
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder listenerThreadPool()
GlobalConfigurationChildBuilder
listenerThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder asyncThreadPool()
GlobalConfigurationChildBuilder
asyncThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder expirationThreadPool()
GlobalConfigurationChildBuilder
expirationThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder persistenceThreadPool()
GlobalConfigurationChildBuilder
persistenceThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder stateTransferThreadPool()
GlobalConfigurationChildBuilder
stateTransferThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder blockingThreadPool()
GlobalConfigurationChildBuilder
blockingThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder nonBlockingThreadPool()
GlobalConfigurationChildBuilder
nonBlockingThreadPool
in interface GlobalConfigurationChildBuilder
public GlobalSecurityConfigurationBuilder security()
GlobalConfigurationChildBuilder
security
in interface GlobalConfigurationChildBuilder
public ShutdownConfigurationBuilder shutdown()
GlobalConfigurationChildBuilder
shutdown
in interface GlobalConfigurationChildBuilder
public SiteConfigurationBuilder site()
GlobalConfigurationChildBuilder
site
in interface GlobalConfigurationChildBuilder
public List<Builder<?>> modules()
GlobalConfigurationChildBuilder
modules
in interface GlobalConfigurationChildBuilder
public GlobalConfigurationBuilder defaultCacheName(String defaultCacheName)
GlobalConfigurationChildBuilder
EmbeddedCacheManager.getCache()
. NotdefaultCacheName
in interface GlobalConfigurationChildBuilder
public GlobalConfiguration build()
GlobalConfigurationChildBuilder
GlobalConfiguration
object using the settings applied to this builderbuild
in interface GlobalConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.