Managing nsasj using java programs – HP Integrity NonStop H-Series User Manual
Page 87

Managing NSASJ using Java programs
JBoss provides management APIs which can be used for managing the resources. These APIs are
packaged in org.jboss.dmr and org.jboss.as.controller.client. NSASJ provides
a wrapper over ModelControllerClient to easily connect to NSASJ's native management
port. This wrapper is provided as a module com.hp.nsk.client-demo. To create a Java
management program, extend the class com.hp.nsk.nsasj.client.NSASJClient and
override the executeCommand method.
NOTE:
This section describes concepts that are useful in understanding the sample management
applications provided by NSASJ. For an in depth understanding of the management API, see
Admin+Guide#AdminGuide-ManagementAPIreference
.
To understand the Management Client API, it is recommended to have a prior knowledge of the
Management Model of JBoss. For more information, see
“Management model concepts” (page
In the embedded video, the following steps are illustrated through a sample program used to create
and execute the whoami operation on the /host=master node.
1.
Establish a connection to the Host Controller.
2.
Build the command.
3.
Execute the command on the connection.
Right click the play button and select the mode in which you want to play the video.
Managing NSASJ using Java programs
87