public class RunCommandDiagnostic extends DefaultDiagnostic
Modifier and Type | Class and Description |
---|---|
static class |
RunCommandDiagnostic.DescriptorImpl |
DefaultDiagnostic.CurrentRun
actualRuns, currentFileName, LOG, LOGGER, TXT, ZIP
Constructor and Description |
---|
RunCommandDiagnostic()
Creates an instance
|
RunCommandDiagnostic(int initialDelay,
int period,
int runs,
String command)
Creates an instance
|
Modifier and Type | Method and Description |
---|---|
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 RunCommandDiagnostic()
@DataBoundConstructor public RunCommandDiagnostic(int initialDelay, int period, int runs, @Nonnull String command)
initialDelay
- number of 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.command
- command line to execute.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.