📄 arcsdeconnectionpool.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:35 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>ArcSDEConnectionPool (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.arcsde.pool.ArcSDEConnectionPool class"><META NAME="keywords" CONTENT="LOGGER"><META NAME="keywords" CONTENT="INFO_LOG_LEVEL"><META NAME="keywords" CONTENT="DEFAULT_CONNECTIONS"><META NAME="keywords" CONTENT="DEFAULT_MAX_CONNECTIONS"><META NAME="keywords" CONTENT="DEFAULT_MAX_WAIT_TIME"><META NAME="keywords" CONTENT="getPoolSize()"><META NAME="keywords" CONTENT="close()"><META NAME="keywords" CONTENT="getAvailableCount()"><META NAME="keywords" CONTENT="getInUseCount()"><META NAME="keywords" CONTENT="getConnection()"><META NAME="keywords" CONTENT="getSdeTable()"><META NAME="keywords" CONTENT="getSdeLayer()"><META NAME="keywords" CONTENT="getAvailableLayerNames()"><META NAME="keywords" CONTENT="isClosed()"><META NAME="keywords" CONTENT="getConfig()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="ArcSDEConnectionPool (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ArcSDEConnectionPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionConfig.html" title="class in org.geotools.arcsde.pool"><B>PREV CLASS</B></A> <A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPoolFactory.html" title="class in org.geotools.arcsde.pool"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="ArcSDEConnectionPool.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.arcsde.pool</FONT><BR>Class ArcSDEConnectionPool</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>ArcSDEConnectionPool</B></PRE><HR><DL><DT>public class <B>ArcSDEConnectionPool</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL><P>Maintains <code>SeConnection</code>'s for a single set of connection properties (for instance: by server, port, user and password) in a pooled way <p> Since sde connections are not jdbc connections, I can't use Sean's excellent connection pool. So I'll borrow most of it. </p> <p> This connection pool is configurable in the sense that some parameters can be passed to establish the pooling policy. To pass parameters to the connection pool, you should set some properties in the parameters Map passed to SdeDataStoreFactory.createDataStore, wich will invoke SdeConnectionPoolFactory to get the SDE instance's pool singleton. That instance singleton will be created with the preferences passed the first time createDataStore is called for a given SDE instance/user, if subsecuent calls change that preferences, they will be ignored. </p> <p> The expected optional parameters that you can set up in the argument Map for createDataStore are: <ul> <li> pool.minConnections Integer, tells the minimun number of open connections the pool will maintain opened </li> <li> pool.maxConnections Integer, tells the maximun number of open connections the pool will create and maintain opened </li> <li> pool.increment Integer, tells how many connections will be created at once every time an available connection is not present and the maximin number of allowed connections has not been reached </li> <li> pool.timeOut Integer, tells how many milliseconds a calling thread is guaranteed to wait before getConnection() throws an UnavailableConnectionException </li> </ul> </p><P><P><DL><DT><B>Author:</B></DT> <DD>Gabriel Roldan, Axios Engineering</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPool.html#DEFAULT_CONNECTIONS">DEFAULT_CONNECTIONS</A></B></CODE><BR> default number of connections a pool creates at first population</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPool.html#DEFAULT_MAX_CONNECTIONS">DEFAULT_MAX_CONNECTIONS</A></B></CODE><BR> default number of maximun allowable connections a pool can hold</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPool.html#DEFAULT_MAX_WAIT_TIME">DEFAULT_MAX_WAIT_TIME</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Level.html" title="class or interface in java.util.logging">Level</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPool.html#INFO_LOG_LEVEL">INFO_LOG_LEVEL</A></B></CODE><BR> DOCUMENT ME!</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/Logger.html" title="class or interface in java.util.logging">Logger</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPool.html#LOGGER">LOGGER</A></B></CODE><BR> package's logger</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionPool.html#ArcSDEConnectionPool(org.geotools.arcsde.pool.ArcSDEConnectionConfig)">ArcSDEConnectionPool</A></B>(<A HREF="../../../../org/geotools/arcsde/pool/ArcSDEConnectionConfig.html" title="class in org.geotools.arcsde.pool">ArcSDEConnectionConfig</A> config)</CODE><BR> Creates a new SdeConnectionPool object with the connection parameters holded by <code>config</code></TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -