KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_jms > JmsJmxManagement


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer(s): Laurent Chauvirey, Frederic Maistre, Nicolas Tachker
22  * Contributor(s):
23  * Philippe Durieux
24  *
25  * --------------------------------------------------------------------------
26  * $Id: JmsJmxManagement.java,v 1.9 2004/03/19 14:31:48 sauthieg Exp $
27  * --------------------------------------------------------------------------
28  */

29
30 package org.objectweb.jonas_jms;
31
32
33 /**
34  * JMS Administration interface to be implemented for each jms provider.
35  */

36 public interface JmsJmxManagement {
37     /**
38      * Management method
39      * @return the current number of Jms Connection Factory
40      */

41     public int getCurrentNumberOfJmsConnectionFactory();
42
43     /**
44      * Management method
45      * @return the current number of Topic Jms Connection Factory
46      */

47     public int getCurrentNumberOfJmsTopicConnectionFactory();
48
49     /**
50      * Management method
51      * @return the current number of Queue Jms Connection Factory
52      */

53     public int getCurrentNumberOfJmsQueueConnectionFactory();
54
55     /**
56      * Management method
57      * @return the current number of Topic Jms Destination
58      */

59     public int getCurrentNumberOfJmsTopicDestination();
60
61     /**
62      * Management method
63      * @return the current number of Queue Jms Destination
64      */

65     public int getCurrentNumberOfJmsQueueDestination();
66
67     /**
68      * Management method
69      * Remove a Jms destination
70      * @param String jndi name
71      * @return the destination type
72      */

73     public String JavaDoc removeJmsDestination(String JavaDoc jndiName) throws Exception JavaDoc;
74
75     /**
76      * Management method
77      * @return String name of default Connection factory
78      */

79     public String JavaDoc getDefaultConnectionFactoryName();
80
81     /**
82      * Management method
83      * @return String name of default Queue Connection factory
84      */

85     public String JavaDoc getDefaultQueueConnectionFactoryName();
86
87
88     /**
89      * Management method
90      * @return String name of default Topic Connection factory
91      */

92     public String JavaDoc getDefaultTopicConnectionFactoryName();
93
94     // Monitoring methods
95

96     /**
97      * Get the messaging mode a connection factory belongs to
98      * @param jndiName connection factory name
99      * @return messaging mode
100      * @exception failure on calling monitoring operation
101      */

102     public String JavaDoc getConnectionFactoryMode(String JavaDoc jndiName) throws Exception JavaDoc;
103
104     /**
105      * Get number of pending messages on a queue
106      * @param jndiName queue name
107      * @return number of pending messages
108      * @exception failure on calling monitoring operation
109      */

110     public int getPendingMessages(String JavaDoc jndiName) throws Exception JavaDoc;
111
112     /**
113      * Get number of pending requests on a queue
114      * @param jndiName queue name
115      * @return number of pending requests
116      * @exception failure on calling monitoring operation
117      */

118     public int getPendingRequests(String JavaDoc jndiName) throws Exception JavaDoc;
119
120     /**
121      * Get number of subscriptions on a topic
122      * @param jndiName topic name
123      * @return number of subscriptions
124      * @exception failure on calling monitoring operation
125      */

126     public int getSubscriptions(String JavaDoc jndiName) throws Exception JavaDoc;
127 }
128
129
Popular Tags