Class DayCounterInfo
java.lang.Object
org.apache.activemq.artemis.api.core.management.DayCounterInfo
Helper class to create Java Objects from the
JSON serialization returned by
QueueControl.listMessageCounterHistory().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DayCounterInfo[]Returns an array of RoleInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounterHistory().long[]Returns a 24-length array corresponding to the number of messages added to the queue for the given hour of the day.getDate()Returns the date of the counter.static StringtoJSON(DayCounterInfo[] infos)
-
Constructor Details
-
DayCounterInfo
-
-
Method Details
-
toJSON
-
fromJSON
Returns an array of RoleInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounterHistory(). -
getDate
Returns the date of the counter. -
getCounters
public long[] getCounters()Returns a 24-length array corresponding to the number of messages added to the queue for the given hour of the day.
-