public abstract class AbstractNExecCmd extends NWorkspaceCmdBase<NExecCmd> implements NExecCmd
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
bot |
protected List<String> |
command |
protected NDefinition |
commandDefinition |
protected NPath |
directory |
protected Boolean |
dry |
protected Map<String,String> |
env |
protected NExecOutput |
err |
protected boolean |
executed |
protected NDuration |
executionTime |
protected NExecutionType |
executionType |
protected List<String> |
executorOptions |
protected boolean |
failFast |
protected NExecInput |
in |
protected boolean |
multipleRuns |
protected String |
multipleRunsCron |
protected int |
multipleRunsMaxCount |
protected long |
multipleRunsMinTimeMs |
protected long |
multipleRunsSafeTimeMs |
protected NExecOutput |
out |
protected NExecutionException |
resultException |
protected NRunAs |
runAs |
protected List<String> |
workspaceOptions |
CUSTOM_SCORE, DEFAULT_SCORE, UNSUPPORTED_SCORE| Constructor and Description |
|---|
AbstractNExecCmd() |
_LOG, configure, copyFromWorkspaceCommandBase, getCommandName, invalidateResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, of, of, ofSystem, run, whichconfigure, configure, configureLastisValidScore, query, queryprotected NDefinition commandDefinition
protected NExecutionException resultException
protected boolean executed
protected NDuration executionTime
protected boolean multipleRuns
protected long multipleRunsMinTimeMs
protected long multipleRunsSafeTimeMs
protected int multipleRunsMaxCount
protected String multipleRunsCron
protected NPath directory
protected NExecOutput out
protected NExecOutput err
protected NExecInput in
protected NExecutionType executionType
protected NRunAs runAs
protected Boolean dry
protected boolean failFast
protected Boolean bot
public int getScore(NScorableContext context)
getScore in interface NComponentgetScore in interface NScorablegetScore in class NWorkspaceCmdBase<NExecCmd>public boolean isFailFast()
isFailFast in interface NExecCmdpublic NExecCmd setFailFast(boolean failFast)
setFailFast in interface NExecCmdpublic List<String> getCommand()
getCommand in interface NExecCmdpublic NExecCmd setCommand(String... command)
setCommand in interface NExecCmdpublic NExecCmd setCommand(Collection<String> command)
setCommand in interface NExecCmdpublic NExecCmd setCommandDefinition(NDefinition definition)
setCommandDefinition in interface NExecCmdpublic NDefinition getCommandDefinition()
getCommandDefinition in interface NExecCmdpublic NExecCmd addCommand(NPath path)
addCommand in interface NExecCmdpublic NExecCmd addCommand(String... command)
addCommand in interface NExecCmdpublic NExecCmd addCommand(Collection<String> command)
addCommand in interface NExecCmdpublic NExecCmd clearCommand()
clearCommand in interface NExecCmdpublic NExecCmd addExecutorOption(String executorOption)
addExecutorOption in interface NExecCmdpublic NExecCmd addExecutorOptions(String... executorOptions)
addExecutorOptions in interface NExecCmdpublic NExecCmd setExecutorOptions(Collection<String> executorOptions)
setExecutorOptions in interface NExecCmdpublic NExecCmd addExecutorOptions(Collection<String> executorOptions)
addExecutorOptions in interface NExecCmdpublic NExecCmd clearExecutorOptions()
clearExecutorOptions in interface NExecCmdpublic List<String> getWorkspaceOptions()
getWorkspaceOptions in interface NExecCmdpublic NExecCmd clearWorkspaceOptions(String workspaceOptions)
clearWorkspaceOptions in interface NExecCmdpublic NExecCmd addWorkspaceOptions(NWorkspaceOptions workspaceOptions)
addWorkspaceOptions in interface NExecCmdpublic NExecCmd addWorkspaceOptions(String workspaceOptions)
addWorkspaceOptions in interface NExecCmdpublic NPath getDirectory()
getDirectory in interface NExecCmdpublic NExecCmd setDirectory(NPath directory)
setDirectory in interface NExecCmdpublic NExecInput getIn()
public NExecCmd setIn(NExecInput in)
public NExecOutput getOut()
public NExecCmd setOut(NExecOutput out)
public NExecCmd grabOutOnly()
grabOutOnly in interface NExecCmdpublic String getGrabbedAllString()
getGrabbedAllString in interface NExecCmdpublic String getGrabbedOutOnlyString()
getGrabbedOutOnlyString in interface NExecCmdpublic String getGrabbedOutString()
getGrabbedOutString in interface NExecCmdpublic String getGrabbedErrString()
getGrabbedErrString in interface NExecCmdpublic NExecOutput getErr()
public NExecCmd setErr(NExecOutput err)
public NExecutionType getExecutionType()
getExecutionType in interface NExecCmdpublic NExecCmd setExecutionType(NExecutionType executionType)
setExecutionType in interface NExecCmdpublic NExecCmd currentUser()
currentUser in interface NExecCmdpublic int getResultCode()
getResultCode in interface NExecCmdpublic List<String> getExecutorOptions()
getExecutorOptions in interface NExecCmdpublic NOptional<NExecutionException> getResultException()
getResultException in interface NExecCmdpublic long getSleepMillis()
getSleepMillis in interface NExecCmdpublic NExecCmd setSleepMillis(long sleepMillis)
setSleepMillis in interface NExecCmdprotected String getExtraErrorMessage()
public boolean configureFirst(NCmdLine cmdLine)
configureFirst in interface NCmdLineConfigurableconfigureFirst in class NWorkspaceCmdBase<NExecCmd>public String getCommandString()
public String getCommandString(ProcessBuilder2.CommandStringFormat f)
public String getConnexionString()
getConnexionString in interface NExecCmdpublic NExecCmd setConnexionString(String host)
setConnexionString in interface NExecCmdpublic NExecCmd at(NConnexionString host)
public NExecCmd setConnexionString(NConnexionString target)
setConnexionString in interface NExecCmdpublic NExecCmd redirectErr()
redirectErr in interface NExecCmdCopyright © 2025 vpc open source initiative. All rights reserved.