mattrpav commented on code in PR #1329:
URL: https://github.com/apache/activemq/pull/1329#discussion_r1920660993
##########
activemq-broker/src/main/java/org/apache/activemq/broker/jmx/DestinationView.java:
##########
@@ -620,4 +621,67 @@ public long getNetworkDequeues() {
return
destination.getDestinationStatistics().getNetworkDequeues().getCount();
}
+ @Override
+ public boolean isAdvancedMessageStatisticsEnabled() {
+ return destination.isAdvancedMessageStatisticsEnabled();
+ }
+
+ @Override
+ public void setAdvancedMessageStatisticsEnabled(boolean
advancedMessageStatisticsEnabled) {
+
destination.setAdvancedMessageStatisticsEnabled(advancedMessageStatisticsEnabled);
+ }
+
+ @Override
+ public long getEnqueuedMessageBrokerInTime() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getEnqueuedMessageBrokerInTime().getValue() : 0l);
+ }
+
+ @Override
+ public String getEnqueuedMessageClientId() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getEnqueuedMessageClientID().getValue() : null);
+ }
+
+ @Override
+ public String getEnqueuedMessageId() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getEnqueuedMessageID().getValue() : null);
+ }
+
+ @Override
+ public long getEnqueuedMessageTimestamp() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getEnqueuedMessageTimestamp().getValue() : 0l);
+ }
+
+ @Override
+ public long getDequeuedMessageBrokerInTime() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getDequeuedMessageBrokerInTime().getValue() : 0l);
+ }
+
+ @Override
+ public long getDequeuedMessageBrokerOutTime() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getDequeuedMessageBrokerOutTime().getValue() : 0l);
+ }
+
+ @Override
+ public String getDequeuedMessageClientId() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getDequeuedMessageClientID().getValue() : null);
+ }
+
+ @Override
+ public String getDequeuedMessageId() {
+ MessageFlowStats tmpMessageFlowStats =
destination.getDestinationStatistics().getMessageFlowStats();
+ return (tmpMessageFlowStats != null ?
tmpMessageFlowStats.getDequeuedMessageID().getValue() : null);
+ }
+
+ @Override
+ public long getDequeuedMessageTimestamp() {
Review Comment:
Completed w/ cshannon's change
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact