This
is continuation to my previous post. In my previous post, I explained how to
connect to JMX agent using HTML Adapter. In this post, I am going to explain
different views provided by HTML View.
HTML
adapter provides three views.
a.
Agent
View
b.
MBean
View
c.
Admin
View
Agent View
When
you launch the application, using HTML adapter, you will landup in Agent View.
This page lists all the registered MBeans by domain.
You
can filter the MBean objects by name. For example, enter the string ‘com.sample.mbean.interfaces:type=SystemStatisticsMBean’
into ‘Filter by object name’ text filed and press Enter.
MBean View
When
you click on any MBean, it navigates you to MBean view page.
Click
on SystemStatisticsMBean to navigate to the MBean view.
As
you see above image, you can perform below things in MBean View page.
a. Get the details of
MBean name and corresponding class details
b. A text field, where
you can enter an integer to reload the page after this number of seconds
c. A button to
unregister the MBean
d. List of MBean
attributes
e. List Of MBean
operations
Admin View
From
the Admin view, you can register new MBean objects, unregister MBean objects.
Click
on ‘Admin’ button, you will be navigated to Adin view page.
As
you see admin view, it provides four text fields.
Domain: This is the first
part of Mbean object name
Keys: This field
represents key=value pair of Object name
Java Class: Class name of MBean
class
Class loader: It is optional. You
can specify class loader if required.
Register another
SystemStatistics Mbean
Give
domain as 'com.sample.mbean.interfaces',
Keys
as 'type=SystemStatisticsMBean2'
Java
Class as 'com.sample.mbeans.SystemStatistics'
Just
leave the ClassLoader field empty.
Choose
the Action as ‘Create’ from drop down, Click on ‘Send Request’ button.
Click
on ‘Send Request’ button.
You
can see successful message.
Go
to Agent view page and check, whether new MBean is created or not.
No comments:
Post a Comment