KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > mq > pm > jdbc2 > PersistenceManagerMBean


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.pm.jdbc2;
23
24 import javax.management.ObjectName JavaDoc;
25
26 import org.jboss.mq.pm.CacheStoreMBean;
27 import org.jboss.system.ServiceMBean;
28
29 /**
30  * MBean interface.
31  *
32  * @author Jayesh Parayali (jayeshpk1@yahoo.com)
33  * @author Hiram Chirino (cojonudo14@hotmail.com)
34  * @author Adrian Brock (adrian@jboss.com)
35  * @version $Revision: 57013 $
36  */

37 public interface PersistenceManagerMBean extends ServiceMBean, org.jboss.mq.pm.PersistenceManagerMBean, CacheStoreMBean
38 {
39    /**
40     * Get the instance of the persistence manager
41     *
42     * @return the instance
43     */

44    Object JavaDoc getInstance();
45
46    /**
47     * Get the object name of the DataSource
48     *
49     * @return the object name of the DataSource
50     */

51    ObjectName JavaDoc getConnectionManager();
52
53    /**
54     * Set the object name of the DataSource
55     *
56     * @param connectionManagerName the object name of the DataSource
57     */

58    void setConnectionManager(ObjectName JavaDoc connectionManagerName);
59
60    /**
61     * Gets the sqlProperties.
62     *
63     * @return Returns a Properties
64     */

65    String JavaDoc getSqlProperties();
66
67    /**
68     * Sets the sqlProperties.
69     *
70     * @param sqlProperties The sqlProperties to set
71     */

72    void setSqlProperties(String JavaDoc value);
73
74    /**
75     * Sets the ConnectionRetryAttempts.
76     *
77     * @param connectionRetryAttempts value
78     */

79    void setConnectionRetryAttempts(int value);
80
81    /**
82     * Gets the ConnectionRetryAttempts.
83     *
84     * @return Returns a ConnectionRetryAttempt value
85     */

86    int getConnectionRetryAttempts();
87
88    /**
89     * Any override recovery transaction timeout
90     *
91     * @return the override transaction timeout
92     */

93    int getRecoveryTimeout();
94
95    /**
96     * Set the override recovery transaction timeout
97     *
98     * @param timeout the timeout
99     */

100    void setRecoveryTimeout(int timeout);
101
102    /**
103     * Returns the recovery retries
104     *
105     * @return the retries
106     */

107    int getRecoveryRetries();
108
109    /**
110     * Set the recovery retries
111     *
112     * @param retries the number of retries
113     */

114    void setRecoveryRetries(int retries);
115
116    /**
117     * Returns the recover messages chunk
118     *
119     * @return the chunk size
120     */

121    int getRecoverMessagesChunk();
122
123    /**
124     * Set the recover messages chunk
125     *
126     * @param recoverMessagesChunk the chunk size
127     */

128    void setRecoverMessagesChunk(int recoverMessagesChunk);
129
130    /**
131     * Get the xaRecovery.
132     *
133     * @return the xaRecovery.
134     */

135    boolean isXARecovery();
136
137    /**
138     * Set the xaRecovery.
139     *
140     * @param xaRecovery the xaRecovery.
141     */

142    void setXARecovery(boolean xaRecovery);
143
144    /**
145     * Get the statement retries
146     *
147     * @return the retries
148     */

149    int getStatementRetries();
150
151    /**
152     * Set the statement retries
153     *
154     * @param statementRetries the retries
155     */

156    void setStatementRetries(int statementRetries);
157 }
158
Popular Tags