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