-
Bug
-
Resolution: Fixed
-
P4
-
1.2.1
-
b61
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
The description of the method setInitThreshold(Number) do NOT indicate how the thresold be applied to the set of observed MBeans.
In the RI, there are two behaviors:
1) Before the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will apply to all observed MBeans.
2) After the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will only apply to the already added MBeans. All MBeans added after the setInitThreshold(Number) will have the thresold 0 and cannot be monitored.
JUSTIFICATION :
The behavior of the method setInitThreshold(Number) should be consistent.
The threshold from the setInitThreshold(Number) method should apply to all observed MBeans no matter when they are added to the CounterMonitor.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The threshold from the setInitThreshold(Number) method should apply to all observed MBeans no matter when they are added to the CounterMonitor.
ACTUAL -
1) Before the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will apply to all observed MBeans.
2) After the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will only apply to the already added MBeans. All MBeans added after the setInitThreshold(Number) will have the thresold 0 and cannot be monitored.
CUSTOMER SUBMITTED WORKAROUND :
always invoke setInitThreshold(Number) after you add an MBean.
The description of the method setInitThreshold(Number) do NOT indicate how the thresold be applied to the set of observed MBeans.
In the RI, there are two behaviors:
1) Before the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will apply to all observed MBeans.
2) After the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will only apply to the already added MBeans. All MBeans added after the setInitThreshold(Number) will have the thresold 0 and cannot be monitored.
JUSTIFICATION :
The behavior of the method setInitThreshold(Number) should be consistent.
The threshold from the setInitThreshold(Number) method should apply to all observed MBeans no matter when they are added to the CounterMonitor.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The threshold from the setInitThreshold(Number) method should apply to all observed MBeans no matter when they are added to the CounterMonitor.
ACTUAL -
1) Before the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will apply to all observed MBeans.
2) After the CounterMonitor.start() method is called, the thresold from the last setInitThreshold(Number) will only apply to the already added MBeans. All MBeans added after the setInitThreshold(Number) will have the thresold 0 and cannot be monitored.
CUSTOMER SUBMITTED WORKAROUND :
always invoke setInitThreshold(Number) after you add an MBean.