KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mchange > v2 > c3p0 > mbean > C3P0PooledDataSourceMBean


1 /*
2  * Distributed as part of c3p0 v.0.9.1
3  *
4  * Copyright (C) 2005 Machinery For Change, Inc.
5  *
6  * Author: Steve Waldman <swaldman@mchange.com>
7  *
8  * This library is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 2.1, as
10  * published by the Free Software Foundation.
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
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this software; see the file LICENSE. If not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */

22
23
24 package com.mchange.v2.c3p0.mbean;
25
26 import com.mchange.v2.c3p0.*;
27 import java.beans.PropertyVetoException JavaDoc;
28 import java.sql.SQLException JavaDoc;
29 import java.util.Properties JavaDoc;
30 import javax.naming.NamingException JavaDoc;
31
32 /**
33  * @deprecated Please use com.mchange.v2.c3p0.jboss.C3P0PooledDataSourceMBean
34  */

35 public interface C3P0PooledDataSourceMBean
36 {
37     // Jndi Setup
38
public void setJndiName(String JavaDoc jndiName) throws NamingException JavaDoc;
39
40     public String JavaDoc getJndiName();
41
42     // DriverManagerDataSourceProperties
43
public String JavaDoc getDescription();
44     
45     public void setDescription( String JavaDoc description ) throws NamingException JavaDoc;
46     
47     public String JavaDoc getDriverClass();
48     
49     public void setDriverClass( String JavaDoc driverClass ) throws PropertyVetoException JavaDoc, NamingException JavaDoc;
50     
51     public String JavaDoc getJdbcUrl();
52     
53     public void setJdbcUrl( String JavaDoc jdbcUrl ) throws NamingException JavaDoc;
54     
55     // DriverManagerDataSource "virtual properties" based on properties
56
public String JavaDoc getUser();
57     
58     public void setUser( String JavaDoc user ) throws NamingException JavaDoc;
59     
60     public String JavaDoc getPassword();
61     
62     public void setPassword( String JavaDoc password ) throws NamingException JavaDoc;
63
64     // WrapperConnectionPoolDataSource properties
65
public int getCheckoutTimeout();
66     
67     public void setCheckoutTimeout( int checkoutTimeout ) throws NamingException JavaDoc;
68     
69     public int getAcquireIncrement();
70     
71     public void setAcquireIncrement( int acquireIncrement ) throws NamingException JavaDoc;
72     
73     public int getAcquireRetryAttempts();
74     
75     public void setAcquireRetryAttempts( int acquireRetryAttempts ) throws NamingException JavaDoc;
76     
77     public int getAcquireRetryDelay();
78     
79     public void setAcquireRetryDelay( int acquireRetryDelay ) throws NamingException JavaDoc;
80     
81     public boolean isAutoCommitOnClose();
82
83     public void setAutoCommitOnClose( boolean autoCommitOnClose ) throws NamingException JavaDoc;
84     
85     public String JavaDoc getConnectionTesterClassName();
86     
87     public void setConnectionTesterClassName( String JavaDoc connectionTesterClassName ) throws PropertyVetoException JavaDoc, NamingException JavaDoc;
88     
89     public String JavaDoc getAutomaticTestTable();
90     
91     public void setAutomaticTestTable( String JavaDoc automaticTestTable ) throws NamingException JavaDoc;
92     
93     public boolean isForceIgnoreUnresolvedTransactions();
94     
95     public void setForceIgnoreUnresolvedTransactions( boolean forceIgnoreUnresolvedTransactions ) throws NamingException JavaDoc;
96     
97     public int getIdleConnectionTestPeriod();
98     
99     public void setIdleConnectionTestPeriod( int idleConnectionTestPeriod ) throws NamingException JavaDoc;
100     
101     public int getInitialPoolSize();
102     
103     public void setInitialPoolSize( int initialPoolSize ) throws NamingException JavaDoc;
104
105     public int getMaxIdleTime();
106     
107     public void setMaxIdleTime( int maxIdleTime ) throws NamingException JavaDoc;
108     
109     public int getMaxPoolSize();
110     
111     public void setMaxPoolSize( int maxPoolSize ) throws NamingException JavaDoc;
112     
113     public int getMaxStatements();
114     
115     public void setMaxStatements( int maxStatements ) throws NamingException JavaDoc;
116     
117     public int getMaxStatementsPerConnection();
118     
119     public void setMaxStatementsPerConnection( int maxStatementsPerConnection ) throws NamingException JavaDoc;
120     
121     public int getMinPoolSize();
122     
123     public void setMinPoolSize( int minPoolSize ) throws NamingException JavaDoc;
124     
125     public int getPropertyCycle();
126     
127     public void setPropertyCycle( int propertyCycle ) throws NamingException JavaDoc;
128     
129     public boolean isBreakAfterAcquireFailure();
130     
131     public void setBreakAfterAcquireFailure( boolean breakAfterAcquireFailure ) throws NamingException JavaDoc;
132     
133     public boolean isTestConnectionOnCheckout();
134     
135     public void setTestConnectionOnCheckout( boolean testConnectionOnCheckout ) throws NamingException JavaDoc;
136     
137     public boolean isTestConnectionOnCheckin();
138     
139     public void setTestConnectionOnCheckin( boolean testConnectionOnCheckin ) throws NamingException JavaDoc;
140     
141     public boolean isUsesTraditionalReflectiveProxies();
142     
143     public void setUsesTraditionalReflectiveProxies( boolean usesTraditionalReflectiveProxies ) throws NamingException JavaDoc;
144
145     public String JavaDoc getPreferredTestQuery();
146     
147     public void setPreferredTestQuery( String JavaDoc preferredTestQuery ) throws NamingException JavaDoc;
148
149     // PoolBackedDataSource properties (count: 2)
150
public int getNumHelperThreads();
151     
152     public void setNumHelperThreads( int numHelperThreads ) throws NamingException JavaDoc;
153
154     // shared properties (count: 1)
155
public String JavaDoc getFactoryClassLocation();
156     
157     public void setFactoryClassLocation( String JavaDoc factoryClassLocation ) throws NamingException JavaDoc;
158
159     // PooledDataSource statistics
160

161     public int getNumUserPools() throws SQLException JavaDoc;
162
163     public int getNumConnectionsDefaultUser() throws SQLException JavaDoc;
164     public int getNumIdleConnectionsDefaultUser() throws SQLException JavaDoc;
165     public int getNumBusyConnectionsDefaultUser() throws SQLException JavaDoc;
166     public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException JavaDoc;
167
168     public int getNumConnections(String JavaDoc username, String JavaDoc password) throws SQLException JavaDoc;
169     public int getNumIdleConnections(String JavaDoc username, String JavaDoc password) throws SQLException JavaDoc;
170     public int getNumBusyConnections(String JavaDoc username, String JavaDoc password) throws SQLException JavaDoc;
171     public int getNumUnclosedOrphanedConnections(String JavaDoc username, String JavaDoc password) throws SQLException JavaDoc;
172
173     public int getNumBusyConnectionsAllUsers() throws SQLException JavaDoc;
174     public int getNumIdleConnectionsAllUsers() throws SQLException JavaDoc;
175     public int getNumConnectionsAllUsers() throws SQLException JavaDoc;
176     public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException JavaDoc;
177
178     // PooledDataSource operations
179
public void softResetDefaultUser() throws SQLException JavaDoc;
180     public void softReset(String JavaDoc username, String JavaDoc password) throws SQLException JavaDoc;
181     public void softResetAllUsers() throws SQLException JavaDoc;
182     public void hardReset() throws SQLException JavaDoc;
183     public void close() throws SQLException JavaDoc;
184     
185     //JBoss only... (but these methods need not be called for the mbean to work)
186
public void create() throws Exception JavaDoc;
187     public void start() throws Exception JavaDoc;
188     public void stop();
189     public void destroy();
190 }
191
Popular Tags