KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > common > routing > IRouterStatistics


1 package com.ubermq.jms.common.routing;
2
3 /**
4  * Contains statistics about the current state of a router.
5  */

6 public interface IRouterStatistics
7     extends java.io.Serializable JavaDoc
8 {
9     /**
10      * Indicates a message was received.
11      */

12     public void messageIn();
13
14     /**
15      * Indicates that a message was sent.
16      */

17     public void messageOut();
18
19     /**
20      * Indicates that a message was dropped.
21      */

22     public void messageDropped();
23
24     /**
25      * Returns the number of messages published to the router.
26      */

27     public int getMessagesIn();
28
29     /**
30      * Returns the number of messages delivered via this router.
31      */

32     public int getMessagesOut();
33
34     /**
35      * Returns the number of messages published but sent to zero
36      * subscribers (i.e. dropped).
37      */

38     public int getMessagesDropped();
39
40     /**
41      * Returns the date that the router was created.
42      */

43     public java.util.Date JavaDoc getStartTime();
44
45     /**
46      * Indicates whether the router is active.
47      * @return true if the router is active.
48      */

49     public boolean isRunning();
50
51     /**
52      * Returns a friendly description of our router statistics.
53      * @return a formatted textual description of the stats.
54      */

55     public String JavaDoc getStatisticsAsText();
56 }
57
Popular Tags