KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mq > server > jmx > DestinationManagerMBean


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.mq.server.jmx;
23
24 import java.util.Map JavaDoc;
25
26 import javax.management.ObjectName JavaDoc;
27
28 /**
29  * MBean interface.
30  */

31 public interface DestinationManagerMBean extends org.jboss.mq.server.jmx.InterceptorMBean
32 {
33
34    int getClientCount();
35
36    java.util.Map JavaDoc getClients();
37
38    /**
39     * Get the value of PersistenceManager.
40     * @return value of PersistenceManager. */

41    javax.management.ObjectName JavaDoc getPersistenceManager();
42
43    /**
44     * Set the value of PersistenceManager.
45     * @param v Value to assign to PersistenceManager. */

46    void setPersistenceManager(javax.management.ObjectName JavaDoc objectName);
47
48    /**
49     * Get the value of StateManager.
50     * @return value of StateManager. */

51    javax.management.ObjectName JavaDoc getStateManager();
52
53    /**
54     * Set the value of StateManager.
55     * @param v Value to assign to StateManager. */

56    void setStateManager(javax.management.ObjectName JavaDoc objectName);
57
58    /**
59     * Get the value of MessageCache.
60     * @return value of MessageCache. */

61    javax.management.ObjectName JavaDoc getMessageCache();
62
63    /**
64     * Set the value of MessageCache.
65     * @param v Value to assign to MessageCache. */

66    void setMessageCache(javax.management.ObjectName JavaDoc objectName);
67
68    /**
69     * Retrieve the temporary topic/queue max depth
70     * @return the maximum depth
71     */

72    int getTemporaryMaxDepth();
73
74    /**
75     * Set the temporary topic/queue max depth
76     * @param depth the maximum depth
77     */

78    void setTemporaryMaxDepth(int depth);
79
80    /**
81     * Retrieve the temporary topic/queue in memory mode
82     * @return true for in memory
83     */

84    boolean getTemporaryInMemory();
85
86    /**
87     * Set the temporary topic/queue in memory mode
88     * @param mode true for in memory
89     */

90    void setTemporaryInMemory(boolean mode);
91
92    /**
93     * Get the receivers implemenetation
94     * @return the receivers implementation class
95     */

96    java.lang.Class JavaDoc getReceiversImpl();
97
98    /**
99     * Set the receivers implementation class
100     * @param clazz the receivers implementation class
101     */

102    void setReceiversImpl(java.lang.Class JavaDoc clazz);
103
104    /**
105     * Returns the recovery retries
106     */

107    public int getRecoveryRetries();
108
109    /**
110     * Sets the class implementating the receivers
111     */

112    public void setRecoveryRetries(int retries);
113
114    /**
115     * Returns ThreadPool.
116     */

117    public ObjectName JavaDoc getThreadPool();
118
119    /**
120     * Sets ThreadPool.
121     */

122    public void setThreadPool(ObjectName JavaDoc threadPool);
123
124    /**
125     * Returns the expiry destination.
126     */

127    public ObjectName JavaDoc getExpiryDestination();
128
129    /**
130     * Sets the expiry destination.
131     */

132    public void setExpiryDestination(ObjectName JavaDoc destination);
133
134    void createQueue(java.lang.String JavaDoc name) throws java.lang.Exception JavaDoc;
135
136    void createTopic(java.lang.String JavaDoc name) throws java.lang.Exception JavaDoc;
137
138    void createQueue(java.lang.String JavaDoc name, java.lang.String JavaDoc jndiLocation) throws java.lang.Exception JavaDoc;
139
140    void createTopic(java.lang.String JavaDoc name, java.lang.String JavaDoc jndiLocation) throws java.lang.Exception JavaDoc;
141
142    void destroyQueue(java.lang.String JavaDoc name) throws java.lang.Exception JavaDoc;
143
144    void destroyTopic(java.lang.String JavaDoc name) throws java.lang.Exception JavaDoc;
145
146    /**
147     * Sets the destination message counter history day limit <0: unlimited, =0: disabled, > 0 maximum day count
148     * @param days maximum day count
149     */

150    void setMessageCounterHistoryDayLimit(int days);
151
152    /**
153     * Gets the destination message counter history day limit
154     * @return Maximum day count
155     */

156    int getMessageCounterHistoryDayLimit();
157
158    /**
159     * get message counter of all configured destinations
160     */

161    org.jboss.mq.server.MessageCounter[] getMessageCounter() throws java.lang.Exception JavaDoc;
162
163    /**
164     * get message stats
165     */

166    org.jboss.mq.MessageStatistics[] getMessageStatistics() throws java.lang.Exception JavaDoc;
167
168    /**
169     * List message counter of all configured destinations as HTML table
170     */

171    java.lang.String JavaDoc listMessageCounter() throws java.lang.Exception JavaDoc;
172
173    /**
174     * Reset message counter of all configured destinations
175     */

176    void resetMessageCounter();
177    
178    /**
179     * Retrieve the prepared transactions
180     *
181     * @return Map<Xid, indoubt boolean>
182     */

183    Map JavaDoc retrievePreparedTransactions();
184    
185    /**
186     * Show the prepared transactions
187     *
188     * @return Some html
189     */

190    String JavaDoc showPreparedTransactions();
191 }
192
Popular Tags