protected static class FileMonitoringTask.FileMonitoringController extends Controller
| Modifier | Constructor and Description |
|---|---|
protected |
FileMonitoringController(hudson.FilePath ws) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(hudson.FilePath workspace)
Cleans up after a task is done.
|
hudson.FilePath |
controlDir(hudson.FilePath ws)
Directory in which this controller can place files.
|
Integer |
exitStatus(hudson.FilePath workspace,
hudson.Launcher launcher)
Checks whether the task has finished.
|
hudson.FilePath |
getLogFile(hudson.FilePath workspace)
File in which the stdout/stderr
|
hudson.FilePath |
getResultFile(hudson.FilePath workspace)
File in which the exit code of the process should be reported.
|
void |
stop(hudson.FilePath workspace,
hudson.Launcher launcher)
Tries to stop any running task.
|
boolean |
writeLog(hudson.FilePath workspace,
OutputStream sink)
Obtains any new task log output.
|
exitStatus, stopprotected FileMonitoringController(hudson.FilePath ws)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic final boolean writeLog(hudson.FilePath workspace,
OutputStream sink)
throws IOException,
InterruptedException
ControllerwriteLog in class Controllerworkspace - the workspace in usesink - where to send new log outputIOExceptionInterruptedExceptionpublic Integer exitStatus(hudson.FilePath workspace, hudson.Launcher launcher) throws IOException, InterruptedException
ControllerexitStatus in class Controllerworkspace - the workspace in uselauncher - a way to start processesIOExceptionInterruptedExceptionpublic final void stop(hudson.FilePath workspace,
hudson.Launcher launcher)
throws IOException,
InterruptedException
Controllerstop in class Controllerworkspace - the workspace in uselauncher - a way to start processesIOExceptionInterruptedExceptionpublic void cleanup(hudson.FilePath workspace)
throws IOException,
InterruptedException
ControllerDurableTask.launch(hudson.EnvVars, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener).cleanup in class Controllerworkspace - the workspace in useIOExceptionInterruptedExceptionpublic hudson.FilePath controlDir(hudson.FilePath ws)
public hudson.FilePath getResultFile(hudson.FilePath workspace)
public hudson.FilePath getLogFile(hudson.FilePath workspace)
Copyright © 2004-2015. All Rights Reserved.