|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.server.MessageCounter
This class stores message count informations for a given queue
Constructor Summary | |
MessageCounter(java.lang.String name,
java.lang.String subscription,
BasicQueue (src) queue,
boolean topic,
boolean durable,
int daycountmax)
Constructor |
Method Summary | |
int |
getCount()
Gets the total message count since startup or last counter reset |
int |
getCountDelta()
Gets the message count delta since last method call |
java.lang.String |
getCounterAsString()
Get message counter data as string in format "Topic/Queue, Name, Subscription, Durable, Count, CountDelta, Depth, DepthDelta, Timestamp Last Increment" |
int |
getDepth()
Gets the current message count of pending messages within the destination waiting for dispatch |
int |
getDepthDelta()
Gets the message count delta of pending messages since last method call. |
boolean |
getDestinationDurable()
Gets the related destination durable subscription flag |
java.lang.String |
getDestinationName()
Gets the related destination name |
java.lang.String |
getDestinationSubscription()
Gets the related destination subscription |
boolean |
getDestinationTopic()
Gets the related destination topic flag |
java.lang.String |
getHistoryAsString()
Get message counter history data as string in format "day count\n Date 1, hour counter 0, hour counter 1, ..., hour counter 23\n Date 2, hour counter 0, hour counter 1, ..., hour counter 23\n ..... |
int |
getHistoryLimit()
Get message counter history day count limit <0: unlimited, 0: history disabled, >0: day count |
long |
getLastUpdate()
Gets the timestamp of the last message add |
static MessageStatistics (src) [] |
getMessageStatistics(MessageCounter (src) [] counter)
Get an array of message statistics from an array of message counters |
void |
incrementCounter()
Increment message counter and update message history |
void |
resetCounter()
Reset message counter values |
void |
resetHistory()
Reset message counter history |
void |
setHistoryLimit(int daycountmax)
Set message counter history day count limit <0: unlimited, 0: history disabled, >0: day count |
java.lang.String |
toString()
Get string representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MessageCounter(java.lang.String name, java.lang.String subscription, BasicQueue (src) queue, boolean topic, boolean durable, int daycountmax)
name
- destination namesubscription
- subscription namequeue
- internal queue objecttopic
- topic destination flagdurable
- durable subsciption flagdaycountmax
- max message history day countMethod Detail |
public static MessageStatistics (src) [] getMessageStatistics(MessageCounter (src) [] counter) throws java.lang.Exception
counter
- the message counters
java.lang.Exception
- for any errorpublic java.lang.String toString()
public void incrementCounter()
public java.lang.String getDestinationName()
public java.lang.String getDestinationSubscription()
public boolean getDestinationTopic()
public boolean getDestinationDurable()
public int getCount()
public int getCountDelta()
public int getDepth()
public int getDepthDelta()
public long getLastUpdate()
public void resetCounter()
public java.lang.String getCounterAsString()
public int getHistoryLimit()
public void setHistoryLimit(int daycountmax)
public void resetHistory()
public java.lang.String getHistoryAsString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |