public class DayCounterInfo extends java.lang.Object
QueueControl.listMessageCounterHistory()
.Constructor and Description |
---|
DayCounterInfo(java.lang.String date,
int[] counters) |
Modifier and Type | Method and Description |
---|---|
static DayCounterInfo[] |
fromJSON(java.lang.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.
|
java.lang.String |
getDate()
Returns the date of the counter.
|
static java.lang.String |
toJSON(DayCounterInfo[] infos) |
public DayCounterInfo(java.lang.String date, int[] counters)
public static java.lang.String toJSON(DayCounterInfo[] infos) throws org.hornetq.utils.json.JSONException
org.hornetq.utils.json.JSONException
public static DayCounterInfo[] fromJSON(java.lang.String jsonString) throws org.hornetq.utils.json.JSONException
QueueControl.listMessageCounterHistory()
.org.hornetq.utils.json.JSONException
public java.lang.String getDate()
public int[] getCounters()
Copyright © 2009 Red Hat Inc. All Rights Reserved.