|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hornetq.api.core.management.MessageCounterInfo
public class MessageCounterInfo
Helper class to create Java Objects from the
JSON serialization returned by QueueControl.listMessageCounter()
.
Constructor Summary | |
---|---|
MessageCounterInfo(String name,
String subscription,
boolean durable,
long count,
long countDelta,
int depth,
int depthDelta,
String lastAddTimestamp,
String udpateTimestamp)
|
Method Summary | |
---|---|
static MessageCounterInfo |
fromJSON(String jsonString)
Returns an array of RoleInfo corresponding to the JSON serialization returned by QueueControl.listMessageCounter() . |
long |
getCount()
Returns the number of messages added to the queue since it was created. |
long |
getCountDelta()
Returns the number of messages added to the queue since the last counter sample. |
int |
getDepth()
Returns the number of messages currently in the queue. |
int |
getDepthDelta()
Returns the number of messages in the queue since last counter sample. |
String |
getLastAddTimestamp()
Returns the timestamp of the last time a message was added to the queue. |
String |
getName()
Returns the name of the queue. |
String |
getSubscription()
Returns the name of the subscription. |
String |
getUdpateTimestamp()
Returns the timestamp of the last time the queue was updated. |
boolean |
isDurable()
Returns whether the queue is durable. |
static String |
toJSon(org.hornetq.core.messagecounter.MessageCounter counter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageCounterInfo(String name, String subscription, boolean durable, long count, long countDelta, int depth, int depthDelta, String lastAddTimestamp, String udpateTimestamp)
Method Detail |
---|
public static String toJSon(org.hornetq.core.messagecounter.MessageCounter counter) throws Exception
Exception
public static MessageCounterInfo fromJSON(String jsonString) throws Exception
QueueControl.listMessageCounter()
.
Exception
public String getName()
public String getSubscription()
public boolean isDurable()
public long getCount()
public long getCountDelta()
public int getDepth()
public int getDepthDelta()
public String getLastAddTimestamp()
public String getUdpateTimestamp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |