Class AbstractDataLoggingService
java.lang.Object
com.google.common.util.concurrent.AbstractScheduledService
com.atlassian.jira.diagnostics.perflog.AbstractDataLoggingService
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
- Direct Known Subclasses:
AbstractJMXMetricLoggingService,AbstractPerformanceDataLoggingService
public abstract class AbstractDataLoggingService
extends com.google.common.util.concurrent.AbstractScheduledService
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.util.concurrent.AbstractScheduledService
com.google.common.util.concurrent.AbstractScheduledService.CustomScheduler, com.google.common.util.concurrent.AbstractScheduledService.SchedulerNested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State -
Method Summary
Methods inherited from class com.google.common.util.concurrent.AbstractScheduledService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
-
Method Details
-
runOneIteration
protected void runOneIteration()- Specified by:
runOneIterationin classcom.google.common.util.concurrent.AbstractScheduledService
-
runOnce
protected abstract void runOnce()Runs one iteration of data logging including getting metrics and logging them. -
startUp
protected void startUp()- Overrides:
startUpin classcom.google.common.util.concurrent.AbstractScheduledService
-
shutDown
protected void shutDown()- Overrides:
shutDownin classcom.google.common.util.concurrent.AbstractScheduledService
-
scheduler
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()- Specified by:
schedulerin classcom.google.common.util.concurrent.AbstractScheduledService
-