KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > broker > jmx > ConnectionViewMBean


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.broker.jmx;
19
20 import org.apache.activemq.Service;
21
22 public interface ConnectionViewMBean extends Service {
23     /**
24      * @return true if the Connection is slow
25      */

26     public boolean isSlow();
27
28     /**
29      * @return if after being marked, the Connection is still writing
30      */

31     public boolean isBlocked();
32
33     /**
34      * @return true if the Connection is connected
35      */

36     public boolean isConnected();
37
38     /**
39      * @return true if the Connection is active
40      */

41     public boolean isActive();
42
43     /**
44      * Returns the number of messages to be dispatched to this connection
45      */

46     public int getDispatchQueueSize();
47     
48     /**
49      * Resets the statistics
50      */

51     public void resetStatistics();
52
53     /**
54      * Returns the number of messages enqueued on this connection
55      *
56      * @return the number of messages enqueued on this connection
57      */

58     public long getEnqueueCount();
59
60     /**
61      * Returns the number of messages dequeued on this connection
62      *
63      * @return the number of messages dequeued on this connection
64      */

65     public long getDequeueCount();
66     
67     /**
68      * Returns the source address for this connection
69      *
70      * @return the souce address for this connection
71      */

72     public String JavaDoc getRemoteAddress();
73
74 }
75
Popular Tags