Java Doc for MessageCounter.java in  » EJB-Server-JBoss-4.2.1 » messaging » org » jboss » mq » server » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » messaging » org.jboss.mq.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mq.server.MessageCounter

MessageCounter
public class MessageCounter (Code)
This class stores message count informations for a given queue
author:
   Ulf Schroeter (u.schroeter@mobilcom.de)
author:
   Stephan Steinbacher (s.steinbacher@mobilcom.de)
version:
   $Revision: 57198 $

Inner Class :static class DayCounter

Field Summary
 intcountTotal
    
 intcountTotalLast
    
 ArrayListdayCounter
    
 intdayCounterMax
    
 intdepthLast
    
 booleandestDurable
    
 StringdestName
    
 BasicQueuedestQueue
    
 StringdestSubscription
    
 booleandestTopic
    
 longtimeLastUpdate
    

Constructor Summary
public  MessageCounter(String name, String subscription, BasicQueue queue, boolean topic, boolean durable, int daycountmax)
    

Method Summary
public  intgetCount()
    
public  intgetCountDelta()
    
public  StringgetCounterAsString()
    
public  intgetDepth()
    
public  intgetDepthDelta()
     Gets the message count delta of pending messages since last method call.
public  booleangetDestinationDurable()
    
public  StringgetDestinationName()
    
public  StringgetDestinationSubscription()
    
public  booleangetDestinationTopic()
    
public  StringgetHistoryAsString()
     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 .....
public  intgetHistoryLimit()
    
public  longgetLastUpdate()
    
public static  MessageStatistics[]getMessageStatistics(MessageCounter[] counter)
    
public  voidincrementCounter()
    
public  voidresetCounter()
    
public  voidresetHistory()
    
public  voidsetHistoryLimit(int daycountmax)
    
public  StringtoString()
    

Field Detail
countTotal
int countTotal(Code)



countTotalLast
int countTotalLast(Code)



dayCounter
ArrayList dayCounter(Code)



dayCounterMax
int dayCounterMax(Code)



depthLast
int depthLast(Code)



destDurable
boolean destDurable(Code)



destName
String destName(Code)



destQueue
BasicQueue destQueue(Code)



destSubscription
String destSubscription(Code)



destTopic
boolean destTopic(Code)



timeLastUpdate
long timeLastUpdate(Code)




Constructor Detail
MessageCounter
public MessageCounter(String name, String subscription, BasicQueue queue, boolean topic, boolean durable, int daycountmax)(Code)
Constructor
Parameters:
  name - destination name
Parameters:
  subscription - subscription name
Parameters:
  queue - internal queue object
Parameters:
  topic - topic destination flag
Parameters:
  durable - durable subsciption flag
Parameters:
  daycountmax - max message history day count




Method Detail
getCount
public int getCount()(Code)
Gets the total message count since startup or last counter reset int message count



getCountDelta
public int getCountDelta()(Code)
Gets the message count delta since last method call int message count delta



getCounterAsString
public String getCounterAsString()(Code)
Get message counter data as string in format "Topic/Queue, Name, Subscription, Durable, Count, CountDelta, Depth, DepthDelta, Timestamp Last Increment" String message counter data string



getDepth
public int getDepth()(Code)
Gets the current message count of pending messages within the destination waiting for dispatch int message queue depth



getDepthDelta
public int getDepthDelta()(Code)
Gets the message count delta of pending messages since last method call. Therefore int message queue depth delta



getDestinationDurable
public boolean getDestinationDurable()(Code)
Gets the related destination durable subscription flag boolean true : durable subscription,false: non-durable subscription



getDestinationName
public String getDestinationName()(Code)
Gets the related destination name String destination name



getDestinationSubscription
public String getDestinationSubscription()(Code)
Gets the related destination subscription String destination name



getDestinationTopic
public boolean getDestinationTopic()(Code)
Gets the related destination topic flag boolean true: topic destination, false: queue destination



getHistoryAsString
public String getHistoryAsString()(Code)
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 ..... ..... Date n, hour counter 0, hour counter 1, ..., hour counter 23\n" String message history data string



getHistoryLimit
public int getHistoryLimit()(Code)
Get message counter history day count limit <0: unlimited, 0: history disabled, >0: day count



getLastUpdate
public long getLastUpdate()(Code)
Gets the timestamp of the last message add long system time



getMessageStatistics
public static MessageStatistics[] getMessageStatistics(MessageCounter[] counter) throws Exception(Code)
Get an array of message statistics from an array of message counters
Parameters:
  counter - the message counters the message statistics
throws:
  Exception - for any error



incrementCounter
public void incrementCounter()(Code)
Increment message counter and update message history



resetCounter
public void resetCounter()(Code)
Reset message counter values



resetHistory
public void resetHistory()(Code)
Reset message counter history



setHistoryLimit
public void setHistoryLimit(int daycountmax)(Code)
Set message counter history day count limit <0: unlimited, 0: history disabled, >0: day count



toString
public String toString()(Code)
Get string representation



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.