public final class JiraStatsWithIpd<T extends com.atlassian.jira.util.stats.ManagedStats>
extends com.atlassian.jira.util.stats.JiraStats<T>
JiraStats with additional scanning for fields annotated with IpdRegistered.for more documentation.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <M extends com.atlassian.jira.util.stats.ManagedStats> |
create(Class<M> interfaceClass,
java.util.function.Supplier<M> objectFactory,
boolean printOnSeparateThread)
Creates ManagedStats object with
IpdRegistered fields registered in the default global ipd registry JiraIpdMainRegistry.instance(). |
static <M extends com.atlassian.jira.util.stats.ManagedStats> |
create(Class<M> interfaceClass,
java.util.function.Supplier<M> objectFactory,
boolean printOnSeparateThread,
com.atlassian.diagnostics.internal.ipd.IpdMetricRegistry ipdMetricRegistry)
Creates ManagedStats object with
IpdRegistered fields registered in given ipdMetricRegistry. |
create, createManagedStatsProxy, handleInvocation, statsLoggingInterval, toStringequals, hashCode, invokeclone, finalize, getClass, notify, notifyAll, wait, wait, waitinvokepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.atlassian.jira.util.stats.JiraStats<T extends com.atlassian.jira.util.stats.ManagedStats>IOExceptionpublic static <M extends com.atlassian.jira.util.stats.ManagedStats> M create(Class<M> interfaceClass, java.util.function.Supplier<M> objectFactory, boolean printOnSeparateThread, com.atlassian.diagnostics.internal.ipd.IpdMetricRegistry ipdMetricRegistry)
IpdRegistered fields registered in given ipdMetricRegistry.
Registered metrics will be unregistered from JMX when this object is closed.public static <M extends com.atlassian.jira.util.stats.ManagedStats> M create(Class<M> interfaceClass, java.util.function.Supplier<M> objectFactory, boolean printOnSeparateThread)
IpdRegistered fields registered in the default global ipd registry JiraIpdMainRegistry.instance().
The registered ipd metrics will be prefixed with ManagedStats.getStatsName()
Copyright © 2002-2024 Atlassian. All Rights Reserved.