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 setFailFast(boolean failFast)
setFailFast in interface NExecpublic List<String> getCommand()
getCommand in interface NExecpublic NExec setCommand(String... command)
setCommand in interface NExecpublic NExec setCommand(Collection<String> command)
setCommand in interface NExecpublic NExec setCommandDefinition(NDefinition definition)
setCommandDefinition in interface NExecpublic NDefinition getCommandDefinition()
getCommandDefinition 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 setExecutorOptions(Collection<String> executorOptions)
setExecutorOptions in interface NExecpublic NExec addExecutorOptions(Collection<String> executorOptions)
addExecutorOptions in interface NExecpublic NExec clearExecutorOptions()
clearExecutorOptions in interface NExecpublic List<String> getWorkspaceOptions()
getWorkspaceOptions 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 NPath getDirectory()
getDirectory in interface NExecpublic NExec setDirectory(NPath directory)
setDirectory in interface NExecpublic NExecInput getIn()
public NExec setIn(NExecInput in)
public NExecOutput getOut()
public NExec setOut(NExecOutput out)
public NExec grabOutOnly()
grabOutOnly in interface NExecpublic String getGrabbedAllString()
getGrabbedAllString in interface NExecpublic String getGrabbedOutOnlyString()
getGrabbedOutOnlyString in interface NExecpublic String getGrabbedOutString()
getGrabbedOutString in interface NExecpublic byte[] getGrabbedOutBytes()
getGrabbedOutBytes in interface NExecpublic byte[] getGrabbedErrBytes()
getGrabbedErrBytes in interface NExecpublic String getGrabbedErrString()
getGrabbedErrString in interface NExecpublic NExecOutput getErr()
public NExec setErr(NExecOutput err)
public NExecutionType getExecutionType()
getExecutionType in interface NExecpublic NExec setExecutionType(NExecutionType executionType)
setExecutionType in interface NExecpublic NExec currentUser()
currentUser in interface NExecpublic int getResultCode()
getResultCode in interface NExecpublic List<String> getExecutorOptions()
getExecutorOptions in interface NExecpublic NOptional<NExecutionException> getResultException()
getResultException in interface NExecpublic long getSleepMillis()
getSleepMillis in interface NExecpublic NExec setSleepMillis(long sleepMillis)
setSleepMillis 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 getConnectionString()
getConnectionString in interface NExecgetConnectionString in interface NConnectionStringAwarepublic NExec setConnectionString(String connectionString)
setConnectionString in interface NExecsetConnectionString 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 setConnectionString(NConnectionString connectionString)
setConnectionString in interface NExecsetConnectionString in interface NConnectionStringAwarepublic NExec redirectErr()
redirectErr in interface NExecpublic boolean isRawCommand()
isRawCommand in interface NExecpublic NExec setRawCommand(boolean rawCommand)
setRawCommand in interface NExecCopyright © 2026 vpc open source initiative. All rights reserved.