protected abstract static class BaseCommandConfiguration.AbstractBuilder<T extends BaseCommandConfiguration.AbstractBuilder<T>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
addCLIArguments(String... arguments)
Adds the CLI arguments used if
#isFork() or
#isOffline() is set to true. |
T |
addCommands(Collection<String> commands)
Adds the commands to the CLI commands that should be executed.
|
T |
addJvmOptions(String... jvmOptions)
Adds the JVM options used if
#isFork() or
#isOffline() is set to true. |
T |
addPropertiesFiles(Collection<File> propertiesFiles)
Adds the properties files to use when executing CLI scripts or
commands.
|
T |
addScripts(Collection<File> scripts)
Adds the scripts to be executed.
|
T |
addSystemProperties(Map<String,String> systemProperties)
Adds to the system properties to set before the CLI commands are
executed.
|
BaseCommandConfiguration |
build() |
protected abstract T |
builderInstance() |
T |
setAppend(boolean append)
If true append output to file, otherwise a new file is created.
|
T |
setBatch(boolean batch)
Sets whether or not the commands should be executed in a batch or
not.
|
T |
setFailOnError(boolean failOnError)
Sets whether or not CLI commands should fail if the command ends in
an error or not.
|
T |
setJBossHome(Path jbossHome)
Sets the JBoss Home directory.
|
T |
setJBossHome(String jbossHome)
Sets the JBoss Home directory.
|
T |
setResolveExpression(boolean resolveExpression)
If true resolve expression prior to send the operation to the server
|
T |
setStdout(String stdout)
Sets how the standard output stream should be handled if
#isFork() or #isOffline() is set to true. |
T |
setTimeout(int timeout)
Sets the timeout, in seconds, used for the management client
connection.
|
protected abstract T builderInstance()
public T setAppend(boolean append)
append - true to append to the file.public T setBatch(boolean batch)
batch - true if the commands should be executed in a
batch, otherwise falsepublic T setJBossHome(String jbossHome)
jbossHome - the JBoss Home directory or null if the
value is not requiredpublic T setJBossHome(Path jbossHome)
jbossHome - the JBoss Home directory or null if the
value is not requiredpublic T addJvmOptions(String... jvmOptions)
#isFork() or
#isOffline() is set to true.jvmOptions - the JVM options or nullpublic T addCLIArguments(String... arguments)
#isFork() or
#isOffline() is set to true.arguments - the CLI arguments or nullpublic T addSystemProperties(Map<String,String> systemProperties)
systemProperties - the system properties or nullpublic T addPropertiesFiles(Collection<File> propertiesFiles)
propertiesFiles - the property files to addpublic T addCommands(Collection<String> commands)
commands - the commands to be executedpublic T addScripts(Collection<File> scripts)
scripts - the scripts to be executedpublic T setFailOnError(boolean failOnError)
failOnError - true if a CLI command fails then the
execution should failpublic T setStdout(String stdout)
#isFork() or #isOffline() is set to true.stdout - the pattern for standard outpublic T setTimeout(int timeout)
timeout - the timeout to use in secondspublic T setResolveExpression(boolean resolveExpression)
resolveExpression - public BaseCommandConfiguration build()
Copyright © 2022 JBoss by Red Hat. All rights reserved.