public 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 JSONException
JSONException
public static DayCounterInfo[] fromJSON(String jsonString) throws JSONException
QueueControl.listMessageCounterHistory()
.JSONException
public String getDate()
public int[] getCounters()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.