With HTMLADAPTER, you can access JMX Agent through your browser.
If the source code can be referred to
JMX NOTIFICATION
You can see it in the browser contains three main pages:
■ Agent View Home, showing all MBeans included in the Agent, filter filter (filter)
■ MBean View Displays the specific situation of MBean, including SET and Get properties, and operations (Operation)
■ Admin View can register new MBean in Agent
Now explain the contents of these three pages in detail:
Agent View:
Notice that the upper part of the page has just said. Filter. When the page is opened, "*: *" is displayed in the input box, which shows all MBean mean. You can also find specific MBeans in numerous MBeans, but you must follow some simple query rules.
Let me talk about this syntax: Domain name: Keyword = property. . . (Domain: key = value ...)
Rule example * Represents numbers or multiple letters *: name = helloworld1, *? Represents a letter ?? Agent: Name = HelloWorld1 default *: *
Enter directly: Domain Name: Keyword = Property. . HelloAgent: name = helloworld1
Ok, get one, then look down:
If you register with a lot of MBean, you can see a MBeanServerDelegate MBean, which is used by MBeanServer to handle some specific transactions. The mouse click on these MBean's hyperlinks and then comes to the MBean View you want to say.
MBean View:
This page includes the details of MBean
information
Description, example
MBean Name
MBean Name: HelloAgent: name = HelloWorld1
Class name
MBean Java Class: Notification.HelloWorld
Reload Period Overloaded Time
Default is 0
Unregister Button logout
Disconmented the registered MBean
Attributes Table Properties
Get / set attribute
Operation operation
Among them, Access in the attribute table is a read-write property, there are three RO, WO, RW (Read Only, Write Only, Read & Write), GET represents reading, set representation
Admin view:
You can add MBean, here there are four text input boxes:
1, Domain: The default is the current domain (Domain)
2, Keys: Enter key / value, such as name = helloworld2
3, Java Class: All class names for the Class of the MBean you need to create, if you have packaged, you should include
4, Class Loader: Can write