public final class DayCounterInfo extends Object
QueueControl.listMessageCounterHistory()
.Constructor and Description |
---|
DayCounterInfo(String date,
int[] counters) |
Modifier and Type | Method and Description |
---|---|
static DayCounterInfo[] |
fromJSON(String jsonString)
Returns an array of RoleInfo corresponding to the JSON serialization returned
by
QueueControl.listMessageCounterHistory() . |
int[] |
getCounters()
Returns a 24-length array corresponding to the number of messages added to the queue
for the given hour of the day.
|
String |
getDate()
Returns the date of the counter.
|
static String |
toJSON(DayCounterInfo[] infos) |
public DayCounterInfo(String date, int[] counters)
public static String toJSON(DayCounterInfo[] infos) throws org.apache.activemq.artemis.utils.json.JSONException
org.apache.activemq.artemis.utils.json.JSONException
public static DayCounterInfo[] fromJSON(String jsonString) throws org.apache.activemq.artemis.utils.json.JSONException
QueueControl.listMessageCounterHistory()
.org.apache.activemq.artemis.utils.json.JSONException
public String getDate()
public int[] getCounters()
Copyright © 2015 The Apache Software Foundation. All rights reserved.