public static class SshEffectorTasks.SshEffectorTaskFactory<RET> extends AbstractSshExecTaskFactory<SshEffectorTasks.SshEffectorTaskFactory<RET>,RET> implements EffectorTasks.EffectorTaskFactory<RET>
PlainSshExecTaskFactory which fulfills the EffectorTasks.EffectorTaskFactory signature so can be used directly as an impl for an effector,
 also injects the machine automatically; can also be used outwith effector contexts, and machine is still injected if it is
 run from inside a task at an entity with a single SshMachineLocationProcessTaskStub.ScriptReturnType| Constructor and Description | 
|---|
| SshEffectorTasks.SshEffectorTaskFactory(SshMachineLocation machine,
                                       java.lang.String... commands) | 
| SshEffectorTasks.SshEffectorTaskFactory(java.lang.String... commands) | 
| Modifier and Type | Method and Description | 
|---|---|
| ProcessTaskWrapper<RET> | newTask() | 
| ProcessTaskWrapper<RET> | newTask(Entity entity,
       Effector<RET> effector,
       ConfigBag parameters) | 
| SshEffectorTasks.SshEffectorTaskFactory<java.lang.String> | requiringZeroAndReturningStdout() | 
| <RET2> SshEffectorTasks.SshEffectorTaskFactory<RET2> | returning(com.google.common.base.Function<ProcessTaskWrapper<?>,RET2> resultTransformation) | 
| <T2> SshEffectorTasks.SshEffectorTaskFactory<T2> | returning(ProcessTaskStub.ScriptReturnType type) | 
| SshEffectorTasks.SshEffectorTaskFactory<java.lang.Boolean> | returningIsExitCodeZero() | 
add, add, addCompletionListener, allowingNonZeroExitCode, configure, configure, constructCustomizedTaskBuilder, environmentVariable, environmentVariables, machine, requiringExitCodeZero, requiringExitCodeZero, runAsCommand, runAsRoot, runAsScript, summarygetCommands, getCompletionListeners, getMachine, getShellEnvironment, getSummary, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, addCompletionListener, allowingNonZeroExitCode, configure, configure, environmentVariable, environmentVariables, machine, requiringExitCodeZero, requiringExitCodeZero, runAsCommand, runAsRoot, runAsScript, summarypublic SshEffectorTasks.SshEffectorTaskFactory(java.lang.String... commands)
public SshEffectorTasks.SshEffectorTaskFactory(SshMachineLocation machine, java.lang.String... commands)
public ProcessTaskWrapper<RET> newTask(Entity entity, Effector<RET> effector, ConfigBag parameters)
newTask in interface EffectorTasks.EffectorTaskFactory<RET>public ProcessTaskWrapper<RET> newTask()
newTask in interface TaskFactory<ProcessTaskWrapper<RET>>newTask in class AbstractSshExecTaskFactory<SshEffectorTasks.SshEffectorTaskFactory<RET>,RET>public <T2> SshEffectorTasks.SshEffectorTaskFactory<T2> returning(ProcessTaskStub.ScriptReturnType type)
returning in interface ProcessTaskFactory<RET>returning in class AbstractProcessTaskFactory<SshEffectorTasks.SshEffectorTaskFactory<RET>,RET>public SshEffectorTasks.SshEffectorTaskFactory<java.lang.Boolean> returningIsExitCodeZero()
returningIsExitCodeZero in interface ProcessTaskFactory<RET>returningIsExitCodeZero in class AbstractProcessTaskFactory<SshEffectorTasks.SshEffectorTaskFactory<RET>,RET>public SshEffectorTasks.SshEffectorTaskFactory<java.lang.String> requiringZeroAndReturningStdout()
requiringZeroAndReturningStdout in interface ProcessTaskFactory<RET>requiringZeroAndReturningStdout in class AbstractProcessTaskFactory<SshEffectorTasks.SshEffectorTaskFactory<RET>,RET>public <RET2> SshEffectorTasks.SshEffectorTaskFactory<RET2> returning(com.google.common.base.Function<ProcessTaskWrapper<?>,RET2> resultTransformation)
returning in interface ProcessTaskFactory<RET>returning in class AbstractProcessTaskFactory<SshEffectorTasks.SshEffectorTaskFactory<RET>,RET>