Class CacheStatisticsMonitor

java.lang.Object
com.atlassian.jira.cache.monitor.CacheStatisticsMonitor
All Implemented Interfaces:
Startable, com.atlassian.scheduler.JobRunner

public class CacheStatisticsMonitor extends Object implements Startable, com.atlassian.scheduler.JobRunner
Sends managed cache statistics to analytics system once a day
Since:
v6.5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheStatisticsMonitor(com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher, InstrumentationListenerManager instrumentationListenerManager, JiraProperties jiraSystemProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.scheduler.JobRunnerResponse
    runJob(com.atlassian.scheduler.JobRunnerRequest jobRunnerRequest)
     
    void
    This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.scheduler.JobRunner

    getParametersClassLoader
  • Field Details

    • JIRA_CACHE_INSTRUMENTATION

      public static final String JIRA_CACHE_INSTRUMENTATION
      See Also:
    • RUN_INTERVAL

      protected static final long RUN_INTERVAL
  • Constructor Details

    • CacheStatisticsMonitor

      public CacheStatisticsMonitor(com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher, InstrumentationListenerManager instrumentationListenerManager, JiraProperties jiraSystemProperties)
  • Method Details

    • runJob

      @Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest jobRunnerRequest)
      Specified by:
      runJob in interface com.atlassian.scheduler.JobRunner
    • start

      public void start() throws Exception
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable
      Throws:
      Exception - Allows implementations to throw an Exception.