KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jms > JmsServiceImplMBean


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  * --------------------------------------------------------------------------
22  * $Id: JmsServiceImplMBean.java,v 1.10 2003/09/03 15:08:34 fmaistre Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.jms;
27 import java.util.Set JavaDoc;
28
29 /**
30  * MBean Interface for Jms Service Management
31  * MBean type: Standard
32  * MBean model: Delegate (JmsService)
33  * @author Guillaume Riviere
34  * @author Frederic Maistre
35  * 03.05.27 - Add support for monitoring of JMS destinations
36  * 03.09 - New methods related to connection factories
37  */

38 public interface JmsServiceImplMBean {
39
40     /**
41      * @return the current number of Jms Connection Factory
42      */

43     public Integer JavaDoc getCurrentNumberOfJmsConnectionFactory();
44
45     /**
46      * @return the current number of Topic Jms Connection Factory
47      */

48     public Integer JavaDoc getCurrentNumberOfJmsTopicConnectionFactory();
49
50     /**
51      * @return the current number of Queue Jms Connection Factory
52      */

53     public Integer JavaDoc getCurrentNumberOfJmsQueueConnectionFactory();
54
55     /**
56      * @return the current number of Topic Jms Destination
57      */

58     public Integer JavaDoc getCurrentNumberOfJmsTopicDestination();
59
60     /**
61      * @return the current number of Queue Jms Destination
62      */

63     public Integer JavaDoc getCurrentNumberOfJmsQueueDestination();
64
65     /**
66      * Create a new Jms queue destination
67      * @param String jndi Name
68      */

69     public void createJmsQueueDestination(String JavaDoc jndiName);
70
71     /**
72      * Create a new Jms topic destination
73      * @param String jndi Name
74      */

75     public void createJmsTopicDestination(String JavaDoc jndiName);
76
77     /**
78      * Remove a Topic Jms destination
79      * @param String jndi name
80      */

81     public void removeJmsTopicDestination(String JavaDoc jndiName);
82
83    /**
84      * Remove a Queue Jms destination
85      * @param String jndi name
86      */

87     public void removeJmsQueueDestination(String JavaDoc jndiName);
88
89    /**
90      * Remove a Jms destination
91      * @param String jndi name
92      */

93     public void removeJmsDestination(String JavaDoc jndiName);
94
95     /**
96      * return Set of Queue Destinations Names
97      */

98     public Set JavaDoc getAllJmsQueueDestinationNames();
99
100     /**
101      * return Set of Topic Destination Names
102      */

103     public Set JavaDoc getAllJmsTopicDestinationNames();
104
105     /**
106      * return Set of Connection Factory Names
107      */

108     public Set JavaDoc getAllJmsConnectionFactoryNames();
109
110     /**
111      * return Set of Queue Connection Factory Names
112      */

113     public Set JavaDoc getAllJmsQueueConnectionFactoryNames();
114
115     /**
116      * return Set of Topic Destination Names
117      */

118     public Set JavaDoc getAllJmsTopicConnectionFactoryNames();
119     /**
120      * return String name of default Queue Connection factory
121      */

122     public String JavaDoc getDefaultQueueConnectionFactoryName();
123
124     /**
125      * return String name of default Topic Connection factory
126      */

127     public String JavaDoc getDefaultTopicConnectionFactoryName();
128
129     /**
130      * @return String name of default Connection factory
131      */

132     public String JavaDoc getDefaultConnectionFactoryName();
133
134     /**
135      * MBean method:
136      * save updated configuration
137      */

138     public void saveConfig();
139
140     // Monitoring methods
141

142     /**
143      * Get the messaging mode a connection factory belongs to
144      * @param jndiName connection factory name
145      * @return messaging mode
146      */

147     public String JavaDoc getConnectionFactoryMode(String JavaDoc jndiName);
148
149     /**
150      * Get number of pending messages on a queue
151      * @param jndiName queue name
152      * @return number of pending messages
153      */

154     public Integer JavaDoc getPendingMessages(String JavaDoc jndiName);
155
156     /**
157      * Get number of pending requests on a queue
158      * @param jndiName queue name
159      * @return number of pending requests
160      */

161     public Integer JavaDoc getPendingRequests(String JavaDoc jndiName);
162
163     /**
164      * Get number of subscriptions on a topic
165      * @param jndiName topic name
166      * @return number of subscriptions
167      */

168     public Integer JavaDoc getSubscriptions(String JavaDoc jndiName);
169
170     public Boolean JavaDoc isMomLocal();
171     public String JavaDoc getUrl();
172     public String JavaDoc getMom();
173 }
174
Popular Tags