public abstract class AbstractNExec extends NWorkspaceCmdBase<NExec> implements NExec
| 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 |
| Constructor and Description |
|---|
AbstractNExec() |
_LOG, configure, copyFromWorkspaceCommandBase, getCommandName, invalidateResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, of, of, ofOpenFile, ofSystem, run, whichconfigure, configure, configureLastprotected 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 boolean isFailFast()
isFailFast in interface NExecpublic NExec command(Collection<String> command)
public NExec commandDefinition(NDefinition definition)
commandDefinition in interface NExecpublic NDefinition commandDefinition()
commandDefinition in interface NExecpublic NExec addCommand(NPath path)
addCommand in interface NExecpublic NExec addCommand(String... command)
addCommand in interface NExecpublic NExec addCommand(Collection<String> command)
addCommand in interface NExecpublic NExec clearCommand()
clearCommand in interface NExecpublic NExec addExecutorOption(String executorOption)
addExecutorOption in interface NExecpublic NExec addExecutorOptions(String... executorOptions)
addExecutorOptions in interface NExecpublic NExec executorOptions(Collection<String> executorOptions)
executorOptions in interface NExecpublic NExec addExecutorOptions(Collection<String> executorOptions)
addExecutorOptions in interface NExecpublic NExec clearExecutorOptions()
clearExecutorOptions in interface NExecpublic List<String> workspaceOptions()
workspaceOptions in interface NExecpublic NExec clearWorkspaceOptions(String workspaceOptions)
clearWorkspaceOptions in interface NExecpublic NExec addWorkspaceOptions(NWorkspaceOptions workspaceOptions)
addWorkspaceOptions in interface NExecpublic NExec addWorkspaceOptions(String workspaceOptions)
addWorkspaceOptions in interface NExecpublic NExecInput in()
public NExec in(NExecInput in)
public NExecOutput out()
public NExec out(NExecOutput out)
public NExec grabOutOnly()
grabOutOnly in interface NExecpublic String grabbedAll()
grabbedAll in interface NExecpublic String grabbedOutOnly()
grabbedOutOnly in interface NExecpublic String grabbedOut()
grabbedOut in interface NExecpublic byte[] grabbedOutBytes()
grabbedOutBytes in interface NExecpublic byte[] grabbedErrBytes()
grabbedErrBytes in interface NExecpublic String grabbedErr()
grabbedErr in interface NExecpublic NExecOutput err()
public NExec err(NExecOutput err)
public NExecutionType executionType()
executionType in interface NExecpublic NExec executionType(NExecutionType executionType)
executionType in interface NExecpublic NExec currentUser()
currentUser in interface NExecpublic List<String> executorOptions()
executorOptions in interface NExecpublic NOptional<NExecutionException> resultException()
resultException in interface NExecpublic NDuration sleepDuration()
sleepDuration in interface NExecpublic NExec sleepDuration(NDuration sleepMillis)
sleepDuration in interface NExecprotected String getExtraErrorMessage()
public boolean configureFirst(NCmdLine cmdLine)
configureFirst in interface NCmdLineConfigurableconfigureFirst in class NWorkspaceCmdBase<NExec>public String getCommandString()
public String getCommandString(ProcessBuilder2.CommandStringFormat f)
public NConnectionString connectionString()
connectionString in interface NExecconnectionString in interface NConnectionStringAwarepublic NExec connectionString(String connectionString)
connectionString in interface NExecconnectionString in interface NConnectionStringAwarepublic NExec at(String connectionString)
at in interface NExecat in interface NConnectionStringAwarepublic NExec at(NConnectionString connectionString)
at in interface NExecat in interface NConnectionStringAwarepublic NExec connectionString(NConnectionString connectionString)
connectionString in interface NExecconnectionString in interface NConnectionStringAwarepublic NExec redirectErr()
redirectErr in interface NExecpublic boolean isRawCommand()
isRawCommand in interface NExecpublic NExec rawCommand(boolean rawCommand)
rawCommand in interface NExecCopyright © 2026 vpc open source initiative. All rights reserved.