Class StatisticsConfigurationBuilder
java.lang.Object
org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.hotrod.configuration.StatisticsConfigurationBuilder
- All Implemented Interfaces:
ConfigurationChildBuilder
,Builder<StatisticsConfiguration>
public class StatisticsConfigurationBuilder
extends AbstractConfigurationChildBuilder
implements Builder<StatisticsConfiguration>
Configures client-side statistics
- Since:
- 9.4
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create the configuration beandisable()
Disables client-side statistics collectionenable()
Enables client-side statistics collectionenabled
(boolean enabled) Enables or disables client-side statistics collectionDisables exposure of client-side statistics over JMXSets the JMX domain name with which MBeans are exposed.Enables exposure of client-side statistics over JMXjmxEnabled
(boolean enabled) Enables or disables exposure of client-side statistics over JMXSets the name of the MBean.mBeanServerLookup
(MBeanServerLookup mBeanServerLookupInstance) Sets the instance of theMBeanServerLookup
class to be used to bound JMX MBeans to.Builder
<?> read
(StatisticsConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.withProperties
(Properties properties) Configures this builder using the specified properties.Methods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, dnsResolverMaxTTL, dnsResolverMinTTL, dnsResolverNegativeTTL, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, remoteCache, security, serverFailureTimeout, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, transactionTimeout, transportFactory, uri, uri, valueSizeEstimate, version
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<StatisticsConfiguration>
-
enabled
Enables or disables client-side statistics collection- Parameters:
enabled
- whether to enable client-side statistics
-
enable
Enables client-side statistics collection -
disable
Disables client-side statistics collection -
jmxEnabled
Enables or disables exposure of client-side statistics over JMX -
jmxEnable
Enables exposure of client-side statistics over JMX -
jmxDisable
Disables exposure of client-side statistics over JMX -
jmxDomain
Sets the JMX domain name with which MBeans are exposed. Defaults to "org.infinispan" (StatisticsConfiguration.JMX_DOMAIN
)- Parameters:
jmxDomain
- the JMX domain name
-
jmxName
Sets the name of the MBean. Defaults to "Default" (StatisticsConfiguration.JMX_NAME
)- Parameters:
jmxName
-
-
mBeanServerLookup
public StatisticsConfigurationBuilder mBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance) Sets the instance of theMBeanServerLookup
class to be used to bound JMX MBeans to.- Parameters:
mBeanServerLookupInstance
- An instance ofMBeanServerLookup
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<StatisticsConfiguration>
- Returns:
-
read
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<StatisticsConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
withProperties
Description copied from interface:ConfigurationChildBuilder
Configures this builder using the specified properties. SeeConfigurationBuilder
for a list.- Specified by:
withProperties
in interfaceConfigurationChildBuilder
- Overrides:
withProperties
in classAbstractConfigurationChildBuilder
-