public class BaseCommandConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseCommandConfiguration.AbstractBuilder<T extends BaseCommandConfiguration.AbstractBuilder<T>> |
static class |
BaseCommandConfiguration.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseCommandConfiguration(BaseCommandConfiguration.AbstractBuilder<?> builder) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getCLIArguments()
Returns the CLI arguments used if
#isFork() or
#isOffline() is set to true. |
Collection<String> |
getCommands()
Returns the commands to be executed.
|
Path |
getJBossHome()
Returns the JBoss Home directory.
|
Collection<String> |
getJvmOptions()
Returns the JVM options used if
#isFork() or #isOffline()
is set to true. |
Collection<Path> |
getPropertiesFiles()
The properties files to use when executing CLI scripts or commands.
|
Collection<Path> |
getScripts()
Returns the scripts to be executed.
|
String |
getStdout()
The pattern used to determine how standard out is handled for a new CLI
process.
|
Map<String,String> |
getSystemProperties()
Returns the system properties to set before CLI commands are executed.
|
int |
getTimeout()
Gets the timeout, in seconds, used for the management connection.
|
boolean |
isAppend()
Is output appended to file.
|
boolean |
isBatch()
Indicates whether or not the commands should be run in a batch or not.
|
boolean |
isExpressionResolved()
Is expression resolved.
|
boolean |
isFailOnError()
Indicates whether or not CLI commands should fail if the command ends in
an error or not.
|
protected BaseCommandConfiguration(BaseCommandConfiguration.AbstractBuilder<?> builder)
public boolean isAppend()
public boolean isBatch()
true if the commands should be executed in a batch,
otherwise falsepublic Path getJBossHome()
null if the value was not setpublic Collection<String> getJvmOptions()
#isFork() or #isOffline()
is set to true.public Collection<String> getCLIArguments()
#isFork() or
#isOffline() is set to true.public Map<String,String> getSystemProperties()
public Collection<Path> getPropertiesFiles()
public Collection<String> getCommands()
public Collection<Path> getScripts()
public boolean isFailOnError()
true if a CLI command fails then the execution should
failpublic String getStdout()
public int getTimeout()
public boolean isExpressionResolved()
Copyright © 2022 JBoss by Red Hat. All rights reserved.