Package org.wildfly.plugin.cli
Class CommandConfiguration
java.lang.Object
org.wildfly.plugin.cli.BaseCommandConfiguration
org.wildfly.plugin.cli.CommandConfiguration
The configuration used to execute CLI commands.
- Author:
- James R. Perkins
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
static class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.as.controller.client.ModelControllerClient
Returns the management client.org.jboss.as.controller.client.ModelControllerClientConfiguration
Returns the management client configuration.boolean
Indicants if the server should be reloaded if the server is in thereload-required
state andisOffline()
isfalse
.boolean
isFork()
Indicates whether or not CLI commands should be executed in a new process.boolean
Indicates whether or not this should be an offline process.static CommandConfiguration.Builder
of
(Supplier<org.jboss.as.controller.client.ModelControllerClient> clientSupplier, Supplier<org.jboss.as.controller.client.ModelControllerClientConfiguration> clientConfigurationSupplier) Creates a new command configuration Builder.Methods inherited from class org.wildfly.plugin.cli.BaseCommandConfiguration
getCLIArguments, getCommands, getJBossHome, getJvmOptions, getPropertiesFiles, getScripts, getStdout, getSystemProperties, getTimeout, isAppend, isBatch, isExpressionResolved, isFailOnError
-
Constructor Details
-
CommandConfiguration
-
-
Method Details
-
of
public static CommandConfiguration.Builder of(Supplier<org.jboss.as.controller.client.ModelControllerClient> clientSupplier, Supplier<org.jboss.as.controller.client.ModelControllerClientConfiguration> clientConfigurationSupplier) Creates a new command configuration Builder.- Parameters:
clientSupplier
- the supplier used to get a management clientclientConfigurationSupplier
- a supplier used to get the client configuration- Returns:
- a new command configuration Builder.
-
getClient
public org.jboss.as.controller.client.ModelControllerClient getClient()Returns the management client.- Returns:
- the management client
-
getClientConfiguration
public org.jboss.as.controller.client.ModelControllerClientConfiguration getClientConfiguration()Returns the management client configuration.- Returns:
- the management client configuration
-
isFork
public boolean isFork()Indicates whether or not CLI commands should be executed in a new process.- Returns:
true
to execute CLI commands in a new process
-
isOffline
public boolean isOffline()Indicates whether or not this should be an offline process.- Returns:
true
if this should be an offline process, otherwisefalse
-
isAutoReload
public boolean isAutoReload()Indicants if the server should be reloaded if the server is in thereload-required
state andisOffline()
isfalse
.- Returns:
true
if a reload should execute if it's required, otherwisefalse
-