@Named @Singleton public class CommandExecutor extends Object
| Constructor and Description |
|---|
CommandExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ManagementClient client,
Path wildflyHome,
Commands commands)
Executes the commands and scripts provided.
|
void |
execute(ManagementClient client,
String wildflyHome,
Commands commands)
Executes the commands and scripts provided.
|
public void execute(ManagementClient client, Path wildflyHome, Commands commands) throws IOException
client - the client usewildflyHome - the path to WildFly or null to use the management client to send commandscommands - the commands to executeIOException - if an error occurs processing the commandspublic void execute(ManagementClient client, String wildflyHome, Commands commands) throws IOException
client - the client usewildflyHome - the path to WildFly or null to use the management client to send commandscommands - the commands to executeIOException - if an error occurs processing the commandsCopyright © 2015 JBoss by Red Hat. All rights reserved.