Date: 2004-12-03T07:11:31
Editor: AchimHuegen <[EMAIL PROTECTED]>
Wiki: Jakarta HiveMind Wiki
Page: JmxPreview
URL: http://wiki.apache.org/jakarta-hivemind/JmxPreview
no comment
Change Log:
------------------------------------------------------------------------------
@@ -28,6 +28,8 @@
You can find the tabular data (e.g. properties values) by double clicking the
bold attribute value.
A mbean that uses both constructor parameters and properties can be found as
test.management.BuilderFactoryTarget
+The metadata functionality is 'experimental'.
+
== Export services as MBeans ==
Services can be registered as MBean very easily by a contribution to "mbeans":
@@ -40,16 +42,44 @@
Now the complete service interface is available via jmx.
(There are some datatype constraints and the servicemodel should be primitive
or singleton)
-Have a look at the test.hivemind.Calculator MBean. You can do some
calculations on the jconsole operations tab.
+Have a look at the Calculator MBean (test\management\service\Calculator). You
can do some calculations on the jconsole operations tab.
Double click on the 'sum' attribute to get a graph of the sum over time.
This is the corresponding service interface :
-{{{
+{{{TODO
}}}
== Performance interceptor ==
+The interceptor PerformanceMonitor collects statistical data about calls to
the intercepted service.
+The results are sent to a newly created mbean. For each service method it
displays: number of calls,
+maximum, minimum, average and last execution duration.
+
+The mbean (test\management\service\Calculator\PerformanceMonitor) displays
these values for the Calculator service.
+So just execute some calculations and watch the statistical data changing.
+Double clicking the attribute values displays a graph.
+
== Monitor ==
+
+Though creation of jmx monitors is not automated it is quite easy by defining
a service point.
+Such a monitor can watch the attribute of another mbean (for example the
average execution time of a service method) and
+send notifications, if a treshold is crossed.
+
+The mbean (test\management\service\????) monitors the sum attribute of the
calculator service.
+
+= Implementation details =
+
+== Dependencies ==
+
+The implementation uses JMX 1.2 and supports JSR 160 for remote management
(via jconsole, mc4j etc.)
+It is depending on MX4J but is working fine with Sun RI too.
+The dependency could be broken up, but there is no standardized way for
creating an HTMLAdapter.
+
+
+
+
+
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]