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 StatisticsConfiguration
create()
Create the configuration beanStatisticsConfigurationBuilder
disable()
Disables client-side statistics collectionStatisticsConfigurationBuilder
enable()
Enables client-side statistics collectionStatisticsConfigurationBuilder
enabled(boolean enabled)
Enables or disables client-side statistics collectionStatisticsConfigurationBuilder
jmxDisable()
Disables exposure of client-side statistics over JMXStatisticsConfigurationBuilder
jmxDomain(String jmxDomain)
Sets the JMX domain name with which MBeans are exposed.StatisticsConfigurationBuilder
jmxEnable()
Enables exposure of client-side statistics over JMXStatisticsConfigurationBuilder
jmxEnabled(boolean enabled)
Enables or disables exposure of client-side statistics over JMXStatisticsConfigurationBuilder
jmxName(String jmxName)
Sets the name of the MBean.StatisticsConfigurationBuilder
mBeanServerLookup(MBeanServerLookup mBeanServerLookupInstance)
Sets the instance of theMBeanServerLookup
class to be used to bound JMX MBeans to.Builder<?>
read(StatisticsConfiguration template)
Reads the configuration from an already created configuration bean into this builder.void
validate()
Validate the data in this builder before building the configuration beanConfigurationBuilder
withProperties(Properties properties)
Configures this builder using the specified properties.-
Methods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, 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, 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 theMBeanServerLookup
class to be used to bound JMX MBeans to.- Parameters:
mBeanServerLookupInstance
- An instance ofMBeanServerLookup
-
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<StatisticsConfiguration>
-
create
public StatisticsConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<StatisticsConfiguration>
- Returns:
-
read
public Builder<?> read(StatisticsConfiguration 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<StatisticsConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
withProperties
public ConfigurationBuilder withProperties(Properties properties)
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
-
-