Package org.wildfly.plugin.cli
Class CommandConfiguration
- java.lang.Object
-
- org.wildfly.plugin.cli.BaseCommandConfiguration
-
- org.wildfly.plugin.cli.CommandConfiguration
-
public class CommandConfiguration extends BaseCommandConfiguration
The configuration used to execute CLI commands.- Author:
- James R. Perkins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
CommandConfiguration.AbstractBuilder<T extends CommandConfiguration.AbstractBuilder<T>>
static class
CommandConfiguration.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommandConfiguration(CommandConfiguration.AbstractBuilder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.as.controller.client.ModelControllerClient
getClient()
Returns the management client.MavenModelControllerClientConfiguration
getClientConfiguration()
Returns the management client configuration.boolean
isAutoReload()
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
isOffline()
Indicates whether or not this should be an offline process.static CommandConfiguration.Builder
of(Supplier<org.jboss.as.controller.client.ModelControllerClient> clientSupplier, Supplier<MavenModelControllerClientConfiguration> 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 Detail
-
CommandConfiguration
protected CommandConfiguration(CommandConfiguration.AbstractBuilder<?> builder)
-
-
Method Detail
-
of
public static CommandConfiguration.Builder of(Supplier<org.jboss.as.controller.client.ModelControllerClient> clientSupplier, Supplier<MavenModelControllerClientConfiguration> 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 MavenModelControllerClientConfiguration 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
-
-