public class PlainSshExecTaskFactory<RET> extends AbstractSshExecTaskFactory<PlainSshExecTaskFactory<RET>,RET>
ProcessTaskStub.ScriptReturnType
Constructor and Description |
---|
PlainSshExecTaskFactory(java.util.List<java.lang.String> commands)
Constructor where machine will be added later
|
PlainSshExecTaskFactory(SshMachineLocation machine,
java.util.List<java.lang.String> commands)
Convenience constructor to supply machine immediately
|
PlainSshExecTaskFactory(SshMachineLocation machine,
java.lang.String... commands)
convenience constructor to supply machine immediately
|
PlainSshExecTaskFactory(java.lang.String... commands)
constructor where machine will be added later
|
Modifier and Type | Method and Description |
---|---|
PlainSshExecTaskFactory<java.lang.String> |
requiringZeroAndReturningStdout() |
<RET2> PlainSshExecTaskFactory<RET2> |
returning(com.google.common.base.Function<ProcessTaskWrapper<?>,RET2> resultTransformation) |
<T2> PlainSshExecTaskFactory<T2> |
returning(ProcessTaskStub.ScriptReturnType type) |
PlainSshExecTaskFactory<java.lang.Boolean> |
returningIsExitCodeZero() |
newTask
add, add, addCompletionListener, allowingNonZeroExitCode, configure, configure, constructCustomizedTaskBuilder, environmentVariable, environmentVariables, machine, requiringExitCodeZero, requiringExitCodeZero, runAsCommand, runAsRoot, runAsScript, summary
getCommands, getCompletionListeners, getMachine, getShellEnvironment, getSummary, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, addCompletionListener, allowingNonZeroExitCode, configure, configure, environmentVariable, environmentVariables, machine, requiringExitCodeZero, requiringExitCodeZero, runAsCommand, runAsRoot, runAsScript, summary
public PlainSshExecTaskFactory(java.lang.String... commands)
public PlainSshExecTaskFactory(SshMachineLocation machine, java.lang.String... commands)
public PlainSshExecTaskFactory(java.util.List<java.lang.String> commands)
public PlainSshExecTaskFactory(SshMachineLocation machine, java.util.List<java.lang.String> commands)
public <T2> PlainSshExecTaskFactory<T2> returning(ProcessTaskStub.ScriptReturnType type)
returning
in interface ProcessTaskFactory<RET>
returning
in class AbstractProcessTaskFactory<PlainSshExecTaskFactory<RET>,RET>
public <RET2> PlainSshExecTaskFactory<RET2> returning(com.google.common.base.Function<ProcessTaskWrapper<?>,RET2> resultTransformation)
returning
in interface ProcessTaskFactory<RET>
returning
in class AbstractProcessTaskFactory<PlainSshExecTaskFactory<RET>,RET>
public PlainSshExecTaskFactory<java.lang.Boolean> returningIsExitCodeZero()
returningIsExitCodeZero
in interface ProcessTaskFactory<RET>
returningIsExitCodeZero
in class AbstractProcessTaskFactory<PlainSshExecTaskFactory<RET>,RET>
public PlainSshExecTaskFactory<java.lang.String> requiringZeroAndReturningStdout()
requiringZeroAndReturningStdout
in interface ProcessTaskFactory<RET>
requiringZeroAndReturningStdout
in class AbstractProcessTaskFactory<PlainSshExecTaskFactory<RET>,RET>