public abstract class AbstractNExecCmd extends NWorkspaceCmdBase<net.thevpc.nuts.NExecCmd> implements net.thevpc.nuts.NExecCmd
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
bot |
protected List<String> |
command |
protected net.thevpc.nuts.NDefinition |
commandDefinition |
protected net.thevpc.nuts.io.NPath |
directory |
protected Boolean |
dry |
protected Map<String,String> |
env |
protected net.thevpc.nuts.io.NExecOutput |
err |
protected boolean |
executed |
protected net.thevpc.nuts.time.NDuration |
executionTime |
protected net.thevpc.nuts.NExecutionType |
executionType |
protected List<String> |
executorOptions |
protected boolean |
failFast |
protected net.thevpc.nuts.io.NExecInput |
in |
protected boolean |
multipleRuns |
protected String |
multipleRunsCron |
protected int |
multipleRunsMaxCount |
protected long |
multipleRunsMinTimeMs |
protected long |
multipleRunsSafeTimeMs |
protected net.thevpc.nuts.io.NExecOutput |
out |
protected net.thevpc.nuts.NExecutionException |
resultException |
protected net.thevpc.nuts.NRunAs |
runAs |
protected List<String> |
workspaceOptions |
| Constructor and Description |
|---|
AbstractNExecCmd() |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NExecCmd |
addCommand(Collection<String> command) |
net.thevpc.nuts.NExecCmd |
addCommand(net.thevpc.nuts.io.NPath path) |
net.thevpc.nuts.NExecCmd |
addCommand(String... command) |
net.thevpc.nuts.NExecCmd |
addEnv(Map<String,String> env) |
net.thevpc.nuts.NExecCmd |
addExecutorOption(String executorOption) |
net.thevpc.nuts.NExecCmd |
addExecutorOptions(Collection<String> executorOptions) |
net.thevpc.nuts.NExecCmd |
addExecutorOptions(String... executorOptions) |
net.thevpc.nuts.NExecCmd |
addWorkspaceOptions(net.thevpc.nuts.NWorkspaceOptions workspaceOptions) |
net.thevpc.nuts.NExecCmd |
addWorkspaceOptions(String workspaceOptions) |
net.thevpc.nuts.NExecCmd |
at(net.thevpc.nuts.util.NConnexionString host) |
net.thevpc.nuts.NExecCmd |
at(String host) |
net.thevpc.nuts.NExecCmd |
clearCommand() |
net.thevpc.nuts.NExecCmd |
clearEnv() |
net.thevpc.nuts.NExecCmd |
clearExecutorOptions() |
net.thevpc.nuts.NExecCmd |
clearWorkspaceOptions(String workspaceOptions) |
boolean |
configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine) |
net.thevpc.nuts.NExecCmd |
copy() |
net.thevpc.nuts.NExecCmd |
copyFrom(net.thevpc.nuts.NExecCmd other) |
net.thevpc.nuts.NExecCmd |
currentUser() |
net.thevpc.nuts.NExecCmd |
embedded() |
net.thevpc.nuts.NExecCmd |
failFast() |
Boolean |
getBot() |
List<String> |
getCommand() |
net.thevpc.nuts.NDefinition |
getCommandDefinition() |
String |
getCommandString() |
String |
getCommandString(ProcessBuilder2.CommandStringFormat f) |
String |
getConnexionString() |
net.thevpc.nuts.io.NPath |
getDirectory() |
Boolean |
getDry() |
Map<String,String> |
getEnv() |
net.thevpc.nuts.io.NExecOutput |
getErr() |
net.thevpc.nuts.NExecutionType |
getExecutionType() |
List<String> |
getExecutorOptions() |
protected String |
getExtraErrorMessage() |
String |
getGrabbedAllString() |
String |
getGrabbedErrString() |
String |
getGrabbedOutOnlyString() |
String |
getGrabbedOutString() |
net.thevpc.nuts.io.NExecInput |
getIn() |
net.thevpc.nuts.io.NExecOutput |
getOut() |
int |
getResultCode() |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.NExecutionException> |
getResultException() |
net.thevpc.nuts.NRunAs |
getRunAs() |
long |
getSleepMillis() |
int |
getSupportLevel(net.thevpc.nuts.spi.NSupportLevelContext context) |
List<String> |
getWorkspaceOptions() |
net.thevpc.nuts.NExecCmd |
grabAll() |
net.thevpc.nuts.NExecCmd |
grabErr() |
net.thevpc.nuts.NExecCmd |
grabOut() |
net.thevpc.nuts.NExecCmd |
grabOutOnly() |
boolean |
isFailFast() |
net.thevpc.nuts.NExecCmd |
open() |
net.thevpc.nuts.NExecCmd |
redirectErr() |
net.thevpc.nuts.NExecCmd |
root() |
net.thevpc.nuts.NExecCmd |
setBot(Boolean bot) |
net.thevpc.nuts.NExecCmd |
setCommand(Collection<String> command) |
net.thevpc.nuts.NExecCmd |
setCommand(String... command) |
net.thevpc.nuts.NExecCmd |
setCommandDefinition(net.thevpc.nuts.NDefinition definition) |
net.thevpc.nuts.NExecCmd |
setConnexionString(net.thevpc.nuts.util.NConnexionString target) |
net.thevpc.nuts.NExecCmd |
setConnexionString(String host) |
net.thevpc.nuts.NExecCmd |
setDirectory(net.thevpc.nuts.io.NPath directory) |
net.thevpc.nuts.NExecCmd |
setDry(Boolean dry) |
net.thevpc.nuts.NExecCmd |
setEnv(Map<String,String> env) |
net.thevpc.nuts.NExecCmd |
setEnv(String key,
String value) |
net.thevpc.nuts.NExecCmd |
setErr(net.thevpc.nuts.io.NExecOutput err) |
net.thevpc.nuts.NExecCmd |
setExecutionType(net.thevpc.nuts.NExecutionType executionType) |
net.thevpc.nuts.NExecCmd |
setExecutorOptions(Collection<String> executorOptions) |
net.thevpc.nuts.NExecCmd |
setFailFast(boolean failFast) |
net.thevpc.nuts.NExecCmd |
setIn(net.thevpc.nuts.io.NExecInput in) |
net.thevpc.nuts.NExecCmd |
setOut(net.thevpc.nuts.io.NExecOutput out) |
net.thevpc.nuts.NExecCmd |
setRunAs(net.thevpc.nuts.NRunAs runAs) |
net.thevpc.nuts.NExecCmd |
setSleepMillis(long sleepMillis) |
net.thevpc.nuts.NExecCmd |
spawn() |
net.thevpc.nuts.NExecCmd |
sudo() |
net.thevpc.nuts.NExecCmd |
system() |
String |
toString() |
_LOG, _LOGOP, configure, copyFromWorkspaceCommandBase, getCommandName, invalidateResultprotected net.thevpc.nuts.NDefinition commandDefinition
protected net.thevpc.nuts.NExecutionException resultException
protected boolean executed
protected net.thevpc.nuts.time.NDuration executionTime
protected boolean multipleRuns
protected long multipleRunsMinTimeMs
protected long multipleRunsSafeTimeMs
protected int multipleRunsMaxCount
protected String multipleRunsCron
protected net.thevpc.nuts.io.NPath directory
protected net.thevpc.nuts.io.NExecOutput out
protected net.thevpc.nuts.io.NExecOutput err
protected net.thevpc.nuts.io.NExecInput in
protected net.thevpc.nuts.NExecutionType executionType
protected net.thevpc.nuts.NRunAs runAs
protected Boolean dry
protected boolean failFast
protected Boolean bot
public int getSupportLevel(net.thevpc.nuts.spi.NSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NComponentgetSupportLevel in class NWorkspaceCmdBase<net.thevpc.nuts.NExecCmd>public boolean isFailFast()
isFailFast in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setBot(Boolean bot)
setBot in interface net.thevpc.nuts.NExecCmdpublic Boolean getBot()
getBot in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setFailFast(boolean failFast)
setFailFast in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd failFast()
failFast in interface net.thevpc.nuts.NExecCmdpublic List<String> getCommand()
getCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setCommand(String... command)
setCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setCommand(Collection<String> command)
setCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setCommandDefinition(net.thevpc.nuts.NDefinition definition)
setCommandDefinition in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NDefinition getCommandDefinition()
getCommandDefinition in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addCommand(net.thevpc.nuts.io.NPath path)
addCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addCommand(String... command)
addCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addCommand(Collection<String> command)
addCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd clearCommand()
clearCommand in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addExecutorOption(String executorOption)
addExecutorOption in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addExecutorOptions(String... executorOptions)
addExecutorOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setExecutorOptions(Collection<String> executorOptions)
setExecutorOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addExecutorOptions(Collection<String> executorOptions)
addExecutorOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd clearExecutorOptions()
clearExecutorOptions in interface net.thevpc.nuts.NExecCmdpublic List<String> getWorkspaceOptions()
getWorkspaceOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd clearWorkspaceOptions(String workspaceOptions)
clearWorkspaceOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addWorkspaceOptions(net.thevpc.nuts.NWorkspaceOptions workspaceOptions)
addWorkspaceOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addWorkspaceOptions(String workspaceOptions)
addWorkspaceOptions in interface net.thevpc.nuts.NExecCmdpublic Map<String,String> getEnv()
getEnv in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setEnv(Map<String,String> env)
setEnv in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd addEnv(Map<String,String> env)
addEnv in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setEnv(String key, String value)
setEnv in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd clearEnv()
clearEnv in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.io.NPath getDirectory()
getDirectory in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setDirectory(net.thevpc.nuts.io.NPath directory)
setDirectory in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.io.NExecInput getIn()
getIn in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setIn(net.thevpc.nuts.io.NExecInput in)
setIn in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.io.NExecOutput getOut()
getOut in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setOut(net.thevpc.nuts.io.NExecOutput out)
setOut in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd grabOut()
grabOut in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd grabAll()
grabAll in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd grabOutOnly()
grabOutOnly in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd grabErr()
grabErr in interface net.thevpc.nuts.NExecCmdpublic String getGrabbedAllString()
getGrabbedAllString in interface net.thevpc.nuts.NExecCmdpublic String getGrabbedOutOnlyString()
getGrabbedOutOnlyString in interface net.thevpc.nuts.NExecCmdpublic String getGrabbedOutString()
getGrabbedOutString in interface net.thevpc.nuts.NExecCmdpublic String getGrabbedErrString()
getGrabbedErrString in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.io.NExecOutput getErr()
getErr in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setErr(net.thevpc.nuts.io.NExecOutput err)
setErr in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecutionType getExecutionType()
getExecutionType in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setExecutionType(net.thevpc.nuts.NExecutionType executionType)
setExecutionType in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd system()
system in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd embedded()
embedded in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd spawn()
spawn in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd open()
open in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NRunAs getRunAs()
getRunAs in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd sudo()
sudo in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd root()
root in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd currentUser()
currentUser in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setRunAs(net.thevpc.nuts.NRunAs runAs)
setRunAs in interface net.thevpc.nuts.NExecCmdpublic Boolean getDry()
getDry in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setDry(Boolean dry)
setDry in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd copyFrom(net.thevpc.nuts.NExecCmd other)
copyFrom in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd copy()
copy in interface net.thevpc.nuts.NExecCmdpublic int getResultCode()
getResultCode in interface net.thevpc.nuts.NExecCmdpublic List<String> getExecutorOptions()
getExecutorOptions in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.util.NOptional<net.thevpc.nuts.NExecutionException> getResultException()
getResultException in interface net.thevpc.nuts.NExecCmdpublic long getSleepMillis()
getSleepMillis in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setSleepMillis(long sleepMillis)
setSleepMillis in interface net.thevpc.nuts.NExecCmdprotected String getExtraErrorMessage()
public boolean configureFirst(net.thevpc.nuts.cmdline.NCmdLine cmdLine)
configureFirst in interface net.thevpc.nuts.cmdline.NCmdLineConfigurableconfigureFirst in class NWorkspaceCmdBase<net.thevpc.nuts.NExecCmd>public String getCommandString()
public String getCommandString(ProcessBuilder2.CommandStringFormat f)
public String getConnexionString()
getConnexionString in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setConnexionString(String host)
setConnexionString in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd at(String host)
at in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd at(net.thevpc.nuts.util.NConnexionString host)
at in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd setConnexionString(net.thevpc.nuts.util.NConnexionString target)
setConnexionString in interface net.thevpc.nuts.NExecCmdpublic net.thevpc.nuts.NExecCmd redirectErr()
redirectErr in interface net.thevpc.nuts.NExecCmdCopyright © 2025 vpc open source initiative. All rights reserved.