Class DayCounterInfo
- java.lang.Object
-
- org.apache.activemq.artemis.api.core.management.DayCounterInfo
-
public final class DayCounterInfo extends java.lang.Object
Helper class to create Java Objects from the JSON serialization returned byQueueControl.listMessageCounterHistory()
.
-
-
Constructor Summary
Constructors Constructor Description DayCounterInfo(java.lang.String date, long[] counters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DayCounterInfo[]
fromJSON(java.lang.String jsonString)
Returns an array of RoleInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounterHistory()
.long[]
getCounters()
Returns a 24-length array corresponding to the number of messages added to the queue for the given hour of the day.java.lang.String
getDate()
Returns the date of the counter.static java.lang.String
toJSON(DayCounterInfo[] infos)
-
-
-
Method Detail
-
toJSON
public static java.lang.String toJSON(DayCounterInfo[] infos)
-
fromJSON
public static DayCounterInfo[] fromJSON(java.lang.String jsonString)
Returns an array of RoleInfo corresponding to the JSON serialization returned byQueueControl.listMessageCounterHistory()
.
-
getDate
public java.lang.String 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.
-
-