forked from alibaba/druid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,153 changed files
with
145,776 additions
and
145,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/target | ||
/.settings | ||
/.project | ||
/.classpath | ||
/1 | ||
/target | ||
/.settings | ||
/.project | ||
/.classpath | ||
/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mvn install:install-file -Dfile=lib/oracle/9.2.0.8/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=9.2.0.8 -Dpackaging=jar -DgeneratePom=true | ||
|
||
mvn install:install-file -Dfile=lib/oracle/10.1.0.5/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.1.0.5 -Dpackaging=jar -DgeneratePom=true | ||
|
||
mvn install:install-file -Dfile=lib/oracle/10.2.0.2/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/10.2.0.5/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5 -Dpackaging=jar -DgeneratePom=true | ||
|
||
mvn install:install-file -Dfile=lib/oracle/11.2.0.3/ojdbc5_g.jar -DgroupId=com.oracle -DartifactId=ojdbc5 -Dversion=11.2.0.3 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/11.2.0.3/ojdbc6_g.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -DgeneratePom=true | ||
|
||
mvn install:install-file -Dfile=lib/proxool/proxool-0.9.1.jar -DgroupId=proxool -DartifactId=proxool -Dversion=0.9.1 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/proxool/proxool-cglib.jar -DgroupId=proxool -DartifactId=proxool-cglib -Dversion=0.9.1 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/9.2.0.8/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=9.2.0.8 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/10.1.0.5/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.1.0.5 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/10.2.0.2/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/10.2.0.5/ojdbc14_g.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/11.2.0.3/ojdbc5_g.jar -DgroupId=com.oracle -DartifactId=ojdbc5 -Dversion=11.2.0.3 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/oracle/11.2.0.3/ojdbc6_g.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/proxool/proxool-0.9.1.jar -DgroupId=proxool -DartifactId=proxool -Dversion=0.9.1 -Dpackaging=jar -DgeneratePom=true | ||
mvn install:install-file -Dfile=lib/proxool/proxool-cglib.jar -DgroupId=proxool -DartifactId=proxool-cglib -Dversion=0.9.1 -Dpackaging=jar -DgeneratePom=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
|
||
ConnectionPool | ||
|---------------------------| | ||
| | | ||
getConnection | | | ||
(notEmpty.await) | | | ||
(lowWater.signal) | | | ||
(maxActive.await) | | | ||
<-------------------------- | | | ||
<-------------------------- | | | ||
<-------------------------- | | | ||
| | | ||
| | | ||
--------------------------> | | | ||
--------------------------> | | 销毁多余连接的线程 | ||
--------------------------> | | (highWater.awati, idleTimeout.await) | ||
close | | --------------------------------------> | ||
(highWater.signal) | | | ||
(maxActive.signal) | | | ||
| | | ||
| | | ||
产生连接的线程 | | | ||
(lowWater.await) | | | ||
(notEmpty.signal) | | | ||
--------------------------> | | | ||
| | | ||
|---------------------------| | ||
|
||
ConnectionPool | ||
|---------------------------| | ||
| | | ||
getConnection | | | ||
(notEmpty.await) | | | ||
(lowWater.signal) | | | ||
(maxActive.await) | | | ||
<-------------------------- | | | ||
<-------------------------- | | | ||
<-------------------------- | | | ||
| | | ||
| | | ||
--------------------------> | | | ||
--------------------------> | | 销毁多余连接的线程 | ||
--------------------------> | | (highWater.awati, idleTimeout.await) | ||
close | | --------------------------------------> | ||
(highWater.signal) | | | ||
(maxActive.signal) | | | ||
| | | ||
| | | ||
产生连接的线程 | | | ||
(lowWater.await) | | | ||
(notEmpty.signal) | | | ||
--------------------------> | | | ||
| | | ||
|---------------------------| | ||
五个Condition:notEmpty、maxActive、lowWater、hightWater, idleTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
public class DruidException extends Exception { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public DruidException(){ | ||
super(); | ||
} | ||
|
||
public DruidException(String message, Throwable cause){ | ||
super(message, cause); | ||
} | ||
|
||
public DruidException(String message){ | ||
super(message); | ||
} | ||
|
||
public DruidException(Throwable cause){ | ||
super(cause); | ||
} | ||
|
||
} | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
public class DruidException extends Exception { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public DruidException(){ | ||
super(); | ||
} | ||
|
||
public DruidException(String message, Throwable cause){ | ||
super(message, cause); | ||
} | ||
|
||
public DruidException(String message){ | ||
super(message); | ||
} | ||
|
||
public DruidException(Throwable cause){ | ||
super(cause); | ||
} | ||
|
||
} |
76 changes: 38 additions & 38 deletions
76
src/main/java/com/alibaba/druid/DruidRuntimeException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
public class DruidRuntimeException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public DruidRuntimeException(){ | ||
super(); | ||
} | ||
|
||
public DruidRuntimeException(String message, Throwable cause){ | ||
super(message, cause); | ||
} | ||
|
||
public DruidRuntimeException(String message){ | ||
super(message); | ||
} | ||
|
||
public DruidRuntimeException(Throwable cause){ | ||
super(cause); | ||
} | ||
|
||
} | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
public class DruidRuntimeException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public DruidRuntimeException(){ | ||
super(); | ||
} | ||
|
||
public DruidRuntimeException(String message, Throwable cause){ | ||
super(message, cause); | ||
} | ||
|
||
public DruidRuntimeException(String message){ | ||
super(message); | ||
} | ||
|
||
public DruidRuntimeException(Throwable cause){ | ||
super(cause); | ||
} | ||
|
||
} |
48 changes: 24 additions & 24 deletions
48
src/main/java/com/alibaba/druid/TransactionTimeoutException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
import java.sql.SQLException; | ||
|
||
public class TransactionTimeoutException extends SQLException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
} | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
import java.sql.SQLException; | ||
|
||
public class TransactionTimeoutException extends SQLException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
public interface VERSION { | ||
|
||
public final static int MajorVersion = 0; | ||
public final static int MinorVersion = 1; | ||
public final static int RevisionVersion = 19; | ||
} | ||
/* | ||
* Copyright 1999-2011 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.alibaba.druid; | ||
|
||
public interface VERSION { | ||
|
||
public final static int MajorVersion = 0; | ||
public final static int MinorVersion = 1; | ||
public final static int RevisionVersion = 19; | ||
} |
Oops, something went wrong.