|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hornetq.api.core.management.DayCounterInfo
public class DayCounterInfo

Helper class to create Java Objects from the
JSON serialization returned by QueueControl.listMessageCounterHistory().
| Constructor Summary | |
|---|---|
DayCounterInfo(String date,
int[] counters)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DayCounterInfo(String date,
int[] counters)
| Method Detail |
|---|
public static String toJSON(DayCounterInfo[] infos)
throws org.hornetq.utils.json.JSONException
org.hornetq.utils.json.JSONException
public static DayCounterInfo[] fromJSON(String jsonString)
throws org.hornetq.utils.json.JSONException
QueueControl.listMessageCounterHistory().
org.hornetq.utils.json.JSONExceptionpublic String getDate()
public int[] getCounters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||