public abstract class Controller extends Object implements Serializable
| Constructor and Description |
|---|
Controller() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cleanup(hudson.FilePath workspace)
Cleans up after a task is done.
|
Integer |
exitStatus(hudson.FilePath workspace)
Deprecated.
use
exitStatus(FilePath, Launcher) instead |
Integer |
exitStatus(hudson.FilePath workspace,
hudson.Launcher launcher)
Checks whether the task has finished.
|
void |
stop(hudson.FilePath workspace)
Deprecated.
use
stop(FilePath, Launcher) instead |
void |
stop(hudson.FilePath workspace,
hudson.Launcher launcher)
Tries to stop any running task.
|
abstract boolean |
writeLog(hudson.FilePath workspace,
OutputStream sink)
Obtains any new task log output.
|
public abstract boolean writeLog(hudson.FilePath workspace,
OutputStream sink)
throws IOException,
InterruptedException
workspace - the workspace in usesink - where to send new log outputIOExceptionInterruptedException@CheckForNull public Integer exitStatus(hudson.FilePath workspace, hudson.Launcher launcher) throws IOException, InterruptedException
workspace - the workspace in uselauncher - a way to start processesIOExceptionInterruptedException@CheckForNull public Integer exitStatus(hudson.FilePath workspace) throws IOException, InterruptedException
exitStatus(FilePath, Launcher) insteadIOExceptionInterruptedExceptionpublic void stop(hudson.FilePath workspace,
hudson.Launcher launcher)
throws IOException,
InterruptedException
workspace - the workspace in uselauncher - a way to start processesIOExceptionInterruptedExceptionpublic void stop(hudson.FilePath workspace)
throws IOException,
InterruptedException
stop(FilePath, Launcher) insteadIOExceptionInterruptedExceptionpublic abstract void cleanup(hudson.FilePath workspace)
throws IOException,
InterruptedException
DurableTask.launch(hudson.EnvVars, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener).workspace - the workspace in useIOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.