Package com.atlassian.beehive.core.stats
Class MetricsBuilderFactory
java.lang.Object
com.atlassian.beehive.core.stats.MetricsBuilderFactory
Util class for constructing metrics builder to be used for measuring lock timer metrics to JMX.
- Since:
- v4.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.atlassian.util.profiling.Metrics.BuildernewClusterLockAwaitedMetricsBuilder(String pluginKey, String lockName, String implementationName) ConstructsMetrics.Builderto use for measuring how long a cluster lock was awaited by a plugin.static com.atlassian.util.profiling.Metrics.BuildernewClusterLockHeldMetricsBuilder(String pluginKey, String lockName, String implementationName) ConstructsMetrics.Builderto use for measuring how long a cluster lock was held by a plugin.
-
Method Details
-
newClusterLockHeldMetricsBuilder
public static com.atlassian.util.profiling.Metrics.Builder newClusterLockHeldMetricsBuilder(String pluginKey, String lockName, String implementationName) ConstructsMetrics.Builderto use for measuring how long a cluster lock was held by a plugin.- Parameters:
pluginKey- the name of the plugin that created this locklockName- the name of the lockimplementationName- the name of the lock service implementation (e.g. DatabaseClusterLockService, HazelcastClusterLockService)- Returns:
- a metrics builder
-
newClusterLockAwaitedMetricsBuilder
public static com.atlassian.util.profiling.Metrics.Builder newClusterLockAwaitedMetricsBuilder(String pluginKey, String lockName, String implementationName) ConstructsMetrics.Builderto use for measuring how long a cluster lock was awaited by a plugin.- Parameters:
pluginKey- the name of the plugin that created this locklockName- the name of the lockimplementationName- the name of the lock service implementation (e.g. DatabaseClusterLockService, HazelcastClusterLockService)- Returns:
- a metrics builder
-