[
https://issues.jboss.org/browse/JGRP-2119?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-2119:
--------------------------------
Done. Any object implementing AdditionalJmxObjects can return a number of instances which
expose attributes (get and set) or operations by simply annotating them with
{{@ManagedAttribute}} or {{@ManagedOperation}}.
For an example, see MsgStats used by TP to maintain various counters on msgs sent,
received etc
Separate JMX objects
--------------------
Key: JGRP-2119
URL:
https://issues.jboss.org/browse/JGRP-2119
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 4.0
Provide managed attributes or operations in separate classes, e.g. to be used for stats
in TP. These could include num_msgs_sent, num_batches_received etc.
A protocol could implement an interface (e.g. AdditionalStats), which would return a list
of objects whose attributes and operations should be exposed together with the protocol.
This would reduce code in TP.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)