ObjectName, Attribute, and AttributeList classes
WAS scripting commands use the JMX classes:
ObjectName uniquely identifies running objects and consists of...
- The domain name WebSphere.
- Several key properties...
type Type of object that is accessible through the MBean, for example, ApplicationServer, and EJBContainer. name Represents the display name of the particular object, for example, MyServer. node Represents the name of the node on which the object runs. process Represents the name of the server process in which the object runs. mbeanIdentifier Correlates the MBean instance with corresponding configuration data.
When ObjectName classes are represented by strings, they have the following pattern:[domainName]:property=value[,property=value]*
To specify an appserver named My Server on node MyNode....
The asterisk (*) is a regex wildcard
We can obtain the object name for a running object with getObjectName.
Attributes of these objects consist of a name and a value. We can extract the name and value with the getName and the getValue methods that are available in the javax.management.Attribute class. We can also extract a list of attributes.