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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticsConfigurationcreate()Create the configuration beanStatisticsConfigurationBuilderdisable()Disables client-side statistics collectionStatisticsConfigurationBuilderenable()Enables client-side statistics collectionStatisticsConfigurationBuilderenabled(boolean enabled)Enables or disables client-side statistics collectionStatisticsConfigurationBuilderjmxDisable()Disables exposure of client-side statistics over JMXStatisticsConfigurationBuilderjmxDomain(String jmxDomain)Sets the JMX domain name with which MBeans are exposed.StatisticsConfigurationBuilderjmxEnable()Enables exposure of client-side statistics over JMXStatisticsConfigurationBuilderjmxEnabled(boolean enabled)Enables or disables exposure of client-side statistics over JMXStatisticsConfigurationBuilderjmxName(String jmxName)Sets the name of the MBean.StatisticsConfigurationBuildermBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance)Sets the instance of theMBeanServerLookupclass to be used to bound JMX MBeans to.Builder<?>read(StatisticsConfiguration template)Reads the configuration from an already created configuration bean into this builder.ConfigurationBuilderwithProperties(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, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, remoteCache, security, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, transactionTimeout, transportFactory, uri, uri, valueSizeEstimate, version
-
-
-
-
Method Detail
-
enabled
public StatisticsConfigurationBuilder enabled(boolean enabled)
Enables or disables client-side statistics collection- Parameters:
enabled- whether to enable client-side statistics
-
enable
public StatisticsConfigurationBuilder enable()
Enables client-side statistics collection
-
disable
public StatisticsConfigurationBuilder disable()
Disables client-side statistics collection
-
jmxEnabled
public StatisticsConfigurationBuilder jmxEnabled(boolean enabled)
Enables or disables exposure of client-side statistics over JMX
-
jmxEnable
public StatisticsConfigurationBuilder jmxEnable()
Enables exposure of client-side statistics over JMX
-
jmxDisable
public StatisticsConfigurationBuilder jmxDisable()
Disables exposure of client-side statistics over JMX
-
jmxDomain
public StatisticsConfigurationBuilder jmxDomain(String 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
public StatisticsConfigurationBuilder jmxName(String 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 theMBeanServerLookupclass to be used to bound JMX MBeans to.- Parameters:
mBeanServerLookupInstance- An instance ofMBeanServerLookup
-
create
public StatisticsConfiguration create()
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<StatisticsConfiguration>- Returns:
-
read
public Builder<?> read(StatisticsConfiguration template)
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<StatisticsConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
withProperties
public ConfigurationBuilder withProperties(Properties properties)
Description copied from interface:ConfigurationChildBuilderConfigures this builder using the specified properties. SeeConfigurationBuilderfor a list.- Specified by:
withPropertiesin interfaceConfigurationChildBuilder- Overrides:
withPropertiesin classAbstractConfigurationChildBuilder
-
-