Java Reference
In-Depth Information
Constructing CLI commands
All CLI operation requests allow you to have low-level interactions with the server man-
agement model. They provide a controlled way to edit the server configurations. An opera-
tion request consists of three parts:
• An address that is prefixed with /
• An operation name that is prefixed with :
• An optional set of parameters contained within ()
Determining the resource address
The server configuration is presented as a hierarchical tree of addressable resources. Each
resource node offers a different set of operations. The address specifies the resource node
on which to perform the operation. An address uses the following syntax:
/node-type=node-name
The notations are explained as follows:
node-type : This is the resource node type. This maps to an element name in the
server configuration.
node-name : This specifies the resource node name. This maps to the name at-
tribute of the element in the server configuration.
Separate each level of the resource tree with a slash ( / ). So, for example, the following CLI
expression identifies the ExampleDS data source registered in the data source subsystem:
/subsystem=datasources/data-source=ExampleDS
Performing operations on resources
Once you have identified a resource, you can perform operations on the resource. An oper-
ation uses the following syntax:
:operation-name
So in the previous example, you can query the list of available resources for your nodes by
adding the read-resource command at the end of it:
Search WWH ::




Custom Search