@ThreadSafe public class DiagnosticsConfig extends Object implements hudson.model.Saveable, Serializable
DiagnosticsSession
, providing methods to manage their lifecycle and persistence. While the
DiagnosticsSession
are running, the status is persisted to disk automatically It will use a
LAZY_SAVE_MIN_DELAY
to avoid writing to many times to disk. When a
DiagnosticsSession
is finished it will be persisted eagerly.Modifier and Type | Class and Description |
---|---|
static class |
DiagnosticsConfig.ConverterImpl
Customized the persistence of this configurations.
|
Modifier and Type | Method and Description |
---|---|
protected hudson.XmlFile |
getConfigXml()
|
void |
notifyDiagnosticFinished(DiagnosticsSession session,
DiagnosticRunner dr)
Called when a full diagnostic execution is finished
|
void |
notifyDiagnoticRunFinished(DiagnosticsSession session,
DiagnosticRunner dr)
Called when a diagnostic run is finished
|
void |
notifySessionFinished(DiagnosticsSession session)
Called when a session execution is finished
|
void |
save()
Saves serializable fields of this instance to the persisted storage.
|
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void save()
save
in interface hudson.model.Saveable
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void notifyDiagnoticRunFinished(DiagnosticsSession session, DiagnosticRunner dr)
session
- the DiagnosticsSession
that sent the notificationdr
- the DiagnosticRunner
that sent the notification@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void notifyDiagnosticFinished(DiagnosticsSession session, DiagnosticRunner dr)
session
- the DiagnosticsSession
that sent the notificationdr
- the DiagnosticRunner
that sent the notificationpublic void notifySessionFinished(DiagnosticsSession session)
session
- the DiagnosticsSession
that sent the notificationCopyright © 2016–2017. All rights reserved.