Package org.jboss.as.jdr.commands
Class CallAS7
java.lang.Object
org.jboss.as.jdr.commands.JdrCommand
org.jboss.as.jdr.commands.CallAS7
Command to call the AS 7 management system and store the output in a file.
This class' methods are meant to be chained together to describe a management call. For example:
new CallAS7("my_file").resource("foo", "bar").operation("read-resource")
will return a configured CallAS7 instance that will, when executed call read-resource
on the /foo=bar/ resource, and store the output in a file called my_file.json.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jboss.as.jdr.commands.JdrCommand
setEnvironment
-
Constructor Details
-
CallAS7
constructs an instance and sets the resulting file name- Parameters:
name- of the file to write results to
-
-
Method Details
-
operation
sets the operation to call- Parameters:
operation- to call, defaults toread-resource- Returns:
- this
-
param
adds a key/value parameter pair to the call- Parameters:
key-val-- Returns:
- this
-
resource
appends resource parts to the resource to call If you want to call /foo=bar/baz=boo/, do this:.resource("foo", "bar", "baz", "boo")- Parameters:
parts- to call- Returns:
- this
-
execute
Description copied from class:JdrCommandexecutes the commandJdrPluginimplementations do not need to call this method.- Specified by:
executein classJdrCommand- Throws:
Exception
-