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 voidexecute()static PeriodicThreadDumpSavergetInstance()protected longgetPeriod()protected longgetTimeout()In milliseconds -1 means stopstatic PeriodicThreadDumpSaverinit()voidsetThreadDumpSaver(ThreadDumpSaver threadDumpSaver)protected booleanshouldReset()protected voidstartNewSequence(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:
shouldResetin classTeamCityDiagnosticService.Task
-
execute
protected void execute()
- Specified by:
executein classTeamCityDiagnosticService.Task
-
getTimeout
protected long getTimeout()
Description copied from class:TeamCityDiagnosticService.TaskIn milliseconds -1 means stop- Specified by:
getTimeoutin classTeamCityDiagnosticService.Task- Returns:
-
-