Interface ConfluenceMonitoringControl
- All Known Implementing Classes:
- AtlassianInstrumentationConfluenceMonitoring
@Internal
public interface ConfluenceMonitoringControl
A service provider interface to be implemented by
 
ConfluenceMonitoring
 implementations. This is to break the dependency of ConflueneMonitoring
 from whatever mechanism is used to control the monitoring.
 
Notes:
- When a ConflueneMonitoring implementation is created, it must not be enabled.
- The method implementations must be idempotent.
- Since:
- 5.5.1
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Clears the currently held statistics.voidDisable capturing CPU timing.voidDisable Hibernate monitoring.voidDisable monitoring.voidEnable capturing CPU timing.voidEnables Hibernate monitoring.voidEnables monitoring.booleanboolean@NonNull List<CounterSnapshot> Returns a snapshot of the counters.@NonNull List<TimerSnapshot> Returns a snapshot of the timers.
- 
Method Details- 
isMonitoringEnabledboolean isMonitoringEnabled()- Returns:
- whether monitoring is enabled.
 
- 
enableMonitoringvoid enableMonitoring()Enables monitoring. It does not effect whether CPU timing is enabled.
- 
disableMonitoringvoid disableMonitoring()Disable monitoring. It does not effect whether CPU timing is enabled.
- 
isCpuTimingEnabledboolean isCpuTimingEnabled()- Returns:
- whether CPU timing is enabled.
 
- 
enableCpuTimingvoid enableCpuTiming()Enable capturing CPU timing. It does not effect whether monitoring is enabled.WARNING: turning on CPU timing will adversly impact on system performance. Do not do this on production systems without due consideration. 
- 
disableCpuTimingvoid disableCpuTiming()Disable capturing CPU timing. It does not effect whether monitoring is enabled.
- 
enableHibernateMonitoringvoid enableHibernateMonitoring()Enables Hibernate monitoring. It does not effect whether monitoring is enabled.
- 
disableHibernateMonitoringvoid disableHibernateMonitoring()Disable Hibernate monitoring. It does not effect whether monitoring is enabled.
- 
clearvoid clear()Clears the currently held statistics.
- 
snapshotCounters@NonNull List<CounterSnapshot> snapshotCounters()Returns a snapshot of the counters.- Returns:
- a mutable list of the current counters.
 
- 
snapshotTimers@NonNull List<TimerSnapshot> snapshotTimers()Returns a snapshot of the timers.- Returns:
- a mutable list of the current timers.
 
 
-