public class IODiagnostic extends DefaultDiagnostic
Diagnostic to help debug IO issues on a Jenkins instance. It tests the IO for every execution.
It makes three kind of tests:
Modifier and Type | Class and Description |
---|---|
static class |
IODiagnostic.DescriptorImpl |
DefaultDiagnostic.CurrentRun
actualRuns, currentFileName, LOG, LOGGER, TXT, ZIP
Constructor and Description |
---|
IODiagnostic()
Creates an instance
|
IODiagnostic(int initialDelay,
int period,
int runs)
Creates an instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
initTests() |
void |
runDiagnostic(PrintWriter pw,
int run)
Executes the diagnostic implemented by this
DefaultDiagnostic . |
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 IODiagnostic()
@DataBoundConstructor public IODiagnostic(int initialDelay, int period, int runs)
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.protected void initTests() throws IOException
IOException
public void runDiagnostic(@Nonnull PrintWriter pw, int run) throws IOException
DefaultDiagnostic
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
pw
- OutputStream
where the diagnostic should write the resultsrun
- execution number of this callIOException
- thrown when there is a problem executing the diagnosticCopyright © 2016–2017. All rights reserved.