|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.as.plugin.cli.Commands
public class Commands
CLI commands to run.
<commands>
<batch>false</batch>
<command>/subsystem=logging/console-handler:CONSOLE:write-attribute(name=level,value=TRACE)</command>
</commands>
| Constructor Summary | |
|---|---|
Commands()
|
|
| Method Summary | |
|---|---|
static org.jboss.as.cli.CommandContext |
create(org.jboss.as.controller.client.ModelControllerClient client)
Creates the command context and binds the client to the context. |
void |
execute(org.jboss.as.controller.client.ModelControllerClient client)
Execute the commands. |
boolean |
hasCommands()
Checks of there are commands that should be executed. |
boolean |
hasScripts()
Checks of there are a CLI script file that should be executed. |
boolean |
isBatch()
Indicates whether or not commands should be executed in a batch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Commands()
| Method Detail |
|---|
public boolean isBatch()
true if commands should be executed in a batch, otherwise
falsepublic boolean hasCommands()
true if there are commands to be processed, otherwise falsepublic boolean hasScripts()
true if there are a CLI script to be processed, otherwise
false
public final void execute(org.jboss.as.controller.client.ModelControllerClient client)
throws IOException
client - the client used to execute the commands
IOException - if the client has an IOException
IllegalArgumentException - if an command is invalidpublic static org.jboss.as.cli.CommandContext create(org.jboss.as.controller.client.ModelControllerClient client)
null, no client is bound to the context.
client - current connected client
IllegalStateException - if the context fails to initialize
|
JBoss AS7 Deployment Plugin 7.9.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||