public class ConfluenceInstrumentRegistry extends Object implements ControllableInstrumentRegistry, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ConfluenceInstrumentRegistry(com.atlassian.instrumentation.operations.OpTimerFactory opTimerFactory) |
ConfluenceInstrumentRegistry(com.atlassian.instrumentation.operations.OpTimerFactory opTimerFactory,
Supplier<com.atlassian.instrumentation.RegistryConfiguration> registryConfigurationSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the currently held statistics.
|
void |
disableMonitoring()
Disable monitoring.
|
void |
enableMonitoring()
Enables monitoring.
|
com.atlassian.instrumentation.Instrument |
getInstrument(String name) |
int |
getNumberOfInstruments()
we still allow to create instrument when disable but won't report any instrument out side
|
com.atlassian.instrumentation.RegistryConfiguration |
getRegistryConfiguration() |
boolean |
isMonitoringEnabled()
Check instrument registry is enable or not
|
com.atlassian.instrumentation.AbsoluteCounter |
pullAbsoluteCounter(String name) |
com.atlassian.instrumentation.caches.CacheCollector |
pullCacheCollector(String name) |
com.atlassian.instrumentation.caches.CacheCollector |
pullCacheCollector(String name,
com.atlassian.instrumentation.caches.CacheCollector.Sizer sizer) |
com.atlassian.instrumentation.caches.CacheCounter |
pullCacheCounter(String name) |
com.atlassian.instrumentation.caches.CacheCounter |
pullCacheCounter(String name,
com.atlassian.instrumentation.caches.CacheCounter.Sizer sizer) |
com.atlassian.instrumentation.Counter |
pullCounter(String name) |
com.atlassian.instrumentation.DerivedCounter |
pullDerivedCounter(String name) |
com.atlassian.instrumentation.Gauge |
pullGauge(String name) |
com.atlassian.instrumentation.operations.OpCounter |
pullOpCounter(String name) |
com.atlassian.instrumentation.operations.OpTimer |
pullTimer(String name) |
protected com.atlassian.instrumentation.Instrument |
putIfAbsent(String name,
com.atlassian.instrumentation.Instrument possiblyNeeded) |
com.atlassian.instrumentation.Instrument |
putInstrument(com.atlassian.instrumentation.Instrument instrument) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
List<com.atlassian.instrumentation.Instrument> |
snapshotInstruments()
we still allow to create instrument when disable but won't report any instrument out side
|
public ConfluenceInstrumentRegistry(com.atlassian.instrumentation.operations.OpTimerFactory opTimerFactory)
public ConfluenceInstrumentRegistry(com.atlassian.instrumentation.operations.OpTimerFactory opTimerFactory, Supplier<com.atlassian.instrumentation.RegistryConfiguration> registryConfigurationSupplier)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public com.atlassian.instrumentation.RegistryConfiguration getRegistryConfiguration()
getRegistryConfiguration
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.Instrument putInstrument(com.atlassian.instrumentation.Instrument instrument)
putInstrument
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.Instrument getInstrument(String name)
getInstrument
in interface com.atlassian.instrumentation.InstrumentRegistry
protected com.atlassian.instrumentation.Instrument putIfAbsent(String name, com.atlassian.instrumentation.Instrument possiblyNeeded)
public com.atlassian.instrumentation.AbsoluteCounter pullAbsoluteCounter(String name)
pullAbsoluteCounter
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.Counter pullCounter(String name)
pullCounter
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.DerivedCounter pullDerivedCounter(String name)
pullDerivedCounter
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.Gauge pullGauge(String name)
pullGauge
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.caches.CacheCollector pullCacheCollector(String name, com.atlassian.instrumentation.caches.CacheCollector.Sizer sizer)
pullCacheCollector
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.caches.CacheCollector pullCacheCollector(String name)
pullCacheCollector
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.caches.CacheCounter pullCacheCounter(String name, com.atlassian.instrumentation.caches.CacheCounter.Sizer sizer)
pullCacheCounter
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.caches.CacheCounter pullCacheCounter(String name)
pullCacheCounter
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.operations.OpCounter pullOpCounter(String name)
pullOpCounter
in interface com.atlassian.instrumentation.InstrumentRegistry
public com.atlassian.instrumentation.operations.OpTimer pullTimer(String name)
pullTimer
in interface com.atlassian.instrumentation.InstrumentRegistry
public List<com.atlassian.instrumentation.Instrument> snapshotInstruments()
snapshotInstruments
in interface com.atlassian.instrumentation.InstrumentRegistry
public int getNumberOfInstruments()
getNumberOfInstruments
in interface com.atlassian.instrumentation.InstrumentRegistry
public boolean isMonitoringEnabled()
ControllableInstrumentRegistry
isMonitoringEnabled
in interface ControllableInstrumentRegistry
public void enableMonitoring()
ControllableInstrumentRegistry
enableMonitoring
in interface ControllableInstrumentRegistry
public void disableMonitoring()
ControllableInstrumentRegistry
disableMonitoring
in interface ControllableInstrumentRegistry
public void clear()
ControllableInstrumentRegistry
clear
in interface ControllableInstrumentRegistry
Copyright © 2003–2020 Atlassian. All rights reserved.