Package jetbrains.buildServer.diagnostic
Class PeriodicThreadDumpSaver
- java.lang.Object
-
- jetbrains.buildServer.diagnostic.TeamCityDiagnosticService.Task
-
- jetbrains.buildServer.diagnostic.PeriodicThreadDumpSaver
-
- All Implemented Interfaces:
Runnable
public class PeriodicThreadDumpSaver extends TeamCityDiagnosticService.Task
Allows to dump (several) thread dumps with a suffix set via internal property Works only if "teamcity.diagnostics.requestTime.threshold.ms" is set (it is set by default)
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.diagnostic.TeamCityDiagnosticService.Task
myTimeout, PAUSED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute()
static PeriodicThreadDumpSaver
getInstance()
protected long
getPeriod()
protected long
getTimeout()
In milliseconds -1 means stopstatic PeriodicThreadDumpSaver
init()
void
setThreadDumpSaver(ThreadDumpSaver threadDumpSaver)
protected boolean
shouldReset()
protected void
startNewSequence(String periodicNameConfigured, long count)
-
Methods inherited from class jetbrains.buildServer.diagnostic.TeamCityDiagnosticService.Task
checkTimeouts, run
-
-
-
-
Method Detail
-
init
@NotNull public static PeriodicThreadDumpSaver init()
-
getInstance
@Nullable public static PeriodicThreadDumpSaver getInstance()
-
setThreadDumpSaver
public void setThreadDumpSaver(ThreadDumpSaver threadDumpSaver)
-
getPeriod
protected long getPeriod()
-
startNewSequence
protected void startNewSequence(String periodicNameConfigured, long count)
-
shouldReset
protected boolean shouldReset()
- Overrides:
shouldReset
in classTeamCityDiagnosticService.Task
-
execute
protected void execute()
- Specified by:
execute
in classTeamCityDiagnosticService.Task
-
getTimeout
protected long getTimeout()
Description copied from class:TeamCityDiagnosticService.Task
In milliseconds -1 means stop- Specified by:
getTimeout
in classTeamCityDiagnosticService.Task
- Returns:
-
-