public class KnifeConvergeTaskFactory<RET> extends KnifeTaskFactory<RET>
SystemProcessTaskFactory.ConcreteSystemProcessTaskFactory<RET>
ProcessTaskStub.ScriptReturnType
taskName
Constructor and Description |
---|
KnifeConvergeTaskFactory(java.lang.String taskName) |
Modifier and Type | Method and Description |
---|---|
KnifeConvergeTaskFactory<RET> |
knifeAddAttributes(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> attributes)
includes the given attributes in the attributes to be passed to chef;
when combining with other attributes, this uses
Jsonya semantics to add
(a deep add, combining lists and maps) |
KnifeConvergeTaskFactory<RET> |
knifeAddExtraBootstrapParameters(java.lang.String extraBootstrapParameter1,
java.lang.String... extraBootstrapParameters)
parameters to pass to knife after the bootstrap command
|
KnifeConvergeTaskFactory<RET> |
knifeAddParameters(java.lang.String word1,
java.lang.String... words) |
KnifeConvergeTaskFactory<RET> |
knifeNodeName(java.lang.String nodeName)
what node name to pass to knife; default = null, meaning chef-client will pick the node name
|
KnifeConvergeTaskFactory<RET> |
knifePort(int port)
tell knife to use an explicit port
|
KnifeConvergeTaskFactory<RET> |
knifePortUseKnifeDefault()
omit the port parameter altogether (let knife use its default)
|
KnifeConvergeTaskFactory<RET> |
knifePortUseMachineSshPort()
use the default port known to brooklyn for the target machine for ssh
|
KnifeConvergeTaskFactory<RET> |
knifeRunList(com.google.common.base.Function<? super Entity,java.lang.String> runList)
function supplying the run list to be passed to knife, evaluated at the last moment
|
KnifeConvergeTaskFactory<RET> |
knifeRunList(java.lang.String runList) |
KnifeConvergeTaskFactory<RET> |
knifeRunTwice(boolean runTwice)
whether knife should attempt to run twice;
see
ChefConfig.CHEF_RUN_CONVERGE_TWICE |
KnifeConvergeTaskFactory<RET> |
knifeSudo(boolean sudo)
whether to pass --sudo to knife; default true
|
KnifeConvergeTaskFactory<java.lang.String> |
requiringZeroAndReturningStdout() |
<RET2> KnifeConvergeTaskFactory<RET2> |
returning(com.google.common.base.Function<ProcessTaskWrapper<?>,RET2> resultTransformation) |
<T2> KnifeConvergeTaskFactory<T2> |
returning(ProcessTaskStub.ScriptReturnType type) |
KnifeConvergeTaskFactory<java.lang.Boolean> |
returningIsExitCodeZero() |
addKnifeCommandToScript, getCommands, getCompletionListeners, knifeConfigFile, knifeExecutable, knifeSetupCommands, newTask, notThrowingOnCommonKnifeErrors
directory, loginShell, machine
add, add, addCompletionListener, allowingNonZeroExitCode, configure, configure, constructCustomizedTaskBuilder, environmentVariable, environmentVariables, requiringExitCodeZero, requiringExitCodeZero, runAsCommand, runAsRoot, runAsScript, summary
getMachine, getShellEnvironment, getSummary, toString
public KnifeConvergeTaskFactory(java.lang.String taskName)
public KnifeConvergeTaskFactory<RET> knifeRunTwice(boolean runTwice)
ChefConfig.CHEF_RUN_CONVERGE_TWICE
public KnifeConvergeTaskFactory<RET> knifeSudo(boolean sudo)
public KnifeConvergeTaskFactory<RET> knifeNodeName(java.lang.String nodeName)
public KnifeConvergeTaskFactory<RET> knifePort(int port)
public KnifeConvergeTaskFactory<RET> knifePortUseKnifeDefault()
public KnifeConvergeTaskFactory<RET> knifePortUseMachineSshPort()
public KnifeConvergeTaskFactory<RET> knifeAddExtraBootstrapParameters(java.lang.String extraBootstrapParameter1, java.lang.String... extraBootstrapParameters)
public KnifeConvergeTaskFactory<RET> knifeRunList(com.google.common.base.Function<? super Entity,java.lang.String> runList)
public KnifeConvergeTaskFactory<RET> knifeRunList(java.lang.String runList)
public KnifeConvergeTaskFactory<RET> knifeAddAttributes(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> attributes)
Jsonya
semantics to add
(a deep add, combining lists and maps)public <T2> KnifeConvergeTaskFactory<T2> returning(ProcessTaskStub.ScriptReturnType type)
returning
in interface ProcessTaskFactory<RET>
returning
in class KnifeTaskFactory<RET>
public <RET2> KnifeConvergeTaskFactory<RET2> returning(com.google.common.base.Function<ProcessTaskWrapper<?>,RET2> resultTransformation)
returning
in interface ProcessTaskFactory<RET>
returning
in class KnifeTaskFactory<RET>
public KnifeConvergeTaskFactory<java.lang.Boolean> returningIsExitCodeZero()
returningIsExitCodeZero
in interface ProcessTaskFactory<RET>
returningIsExitCodeZero
in class KnifeTaskFactory<RET>
public KnifeConvergeTaskFactory<java.lang.String> requiringZeroAndReturningStdout()
requiringZeroAndReturningStdout
in interface ProcessTaskFactory<RET>
requiringZeroAndReturningStdout
in class KnifeTaskFactory<RET>
public KnifeConvergeTaskFactory<RET> knifeAddParameters(java.lang.String word1, java.lang.String... words)
knifeAddParameters
in class KnifeTaskFactory<RET>