public class SupportBundleDiagnostic extends DefaultDiagnostic
Modifier and Type | Class and Description |
---|---|
static class |
SupportBundleDiagnostic.BasicSupportBundle
minimum support bundle configuration.
|
static class |
SupportBundleDiagnostic.DescriptorImpl |
static class |
SupportBundleDiagnostic.FullSupportBundle
Full support bundle configuration.
|
static class |
SupportBundleDiagnostic.MediumSupportBundle
medium support bundle configuration.
|
static class |
SupportBundleDiagnostic.SupportBundleConfig
base class for support bundle configurations.
|
static class |
SupportBundleDiagnostic.SupportBundleDescriptor
descriptor for support bundles configurations.
|
DefaultDiagnostic.CurrentRun
actualRuns, currentFileName, LOG, LOGGER, TXT, ZIP
Constructor and Description |
---|
SupportBundleDiagnostic()
Creates an instance
|
SupportBundleDiagnostic(int initialDelay,
int period,
int runs,
SupportBundleDiagnostic.SupportBundleConfig supportBundleConfig)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
SupportBundleDiagnostic.SupportBundleConfig |
getSupportBundleConfig() |
void |
runDiagnostic(PrintWriter out,
int run)
Executes the diagnostic implemented by this
DefaultDiagnostic . |
void |
setSupportBundleConfig(SupportBundleDiagnostic.SupportBundleConfig supportBundleConfig) |
afterExecutionFinished, afterRunFinished, beforeExecutionStart, beforeRunStart, buildResultFileName, createCurrentFile, createRootDir, getCurrentOutputStream, getCurrentPrintWriter, getCurrentRun, getDiagnosticLog, getFileName, runDiagnostic
all, equals, getDescriptor, getId, getInitialDelay, getPeriod, getRuns, hashCode, setInitialDelay, setPeriod, setRuns
public SupportBundleDiagnostic()
@DataBoundConstructor public SupportBundleDiagnostic(int initialDelay, int period, int runs, @Nonnull SupportBundleDiagnostic.SupportBundleConfig supportBundleConfig)
initialDelay
- number milliseconds to delay the first execution.period
- period to wait between successive executions in milliseconds.runs
- number of times this diagnostic should be executed on the diagnostic session.supportBundleConfig
- Type of support bundle.public void runDiagnostic(@Nonnull PrintWriter out, int run) throws IOException
DefaultDiagnostic
. Convenient method that receives the
PrintWriter
to write to. If more flexibility is needed to generate content, override
DefaultDiagnostic.runDiagnostic(DiagnosticsContainer result, int run)
instead.runDiagnostic
in class DefaultDiagnostic
out
- OutputStream
where the diagnostic should write the resultsrun
- execution number of this callIOException
- thrown when there is a problem executing the diagnosticpublic SupportBundleDiagnostic.SupportBundleConfig getSupportBundleConfig()
public void setSupportBundleConfig(SupportBundleDiagnostic.SupportBundleConfig supportBundleConfig)
Copyright © 2016–2017. All rights reserved.