📄 jco.pool.html
字号:
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#getTrace()">getTrace</A></B>()</CODE>
<BR>
Returns whether trace for this pool is enabled or not.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setAbapDebug(boolean)">setAbapDebug</A></B>(boolean debug)</CODE>
<BR>
Enables/disables ABAP debug. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setConnectionTimeout(long)">setConnectionTimeout</A></B>(long connection_timeout)</CODE>
<BR>
Sets the connection timeout in milliseconds. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setMaxConnections(int)">setMaxConnections</A></B>(int max_connections)</CODE>
<BR>
Sets the maximum number of connections which can be allocated from the pool. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setMaxPoolSize(int)">setMaxPoolSize</A></B>(int max_pool_size)</CODE>
<BR>
Sets the maximum number of connections which will be held open by the pool for possible future reuse after they have been released. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setMaxWaitTime(long)">setMaxWaitTime</A></B>(long max_wait_time)</CODE>
<BR>
Sets the maximum time to wait in a connection request for a free connection. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setResetOnRelease(boolean)">setResetOnRelease</A></B>(boolean reset_on_release)</CODE>
<BR>
Enables/disables cleanup when the client is being returned to its pool. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setTimeoutCheckPeriod(long)">setTimeoutCheckPeriod</A></B>(long timeout_check_period)</CODE>
<BR>
Sets the timeout check period in milliseconds. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setTrace(boolean)">setTrace</A></B>(boolean trace)</CODE>
<BR>
Enables/disables RFC tracing for the connections of the pool.<br> This property only affects future connections that will be created by the pool. </TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="INFINITE"><!-- --></A><H3>
INFINITE</H3>
<PRE>
public final int <B>INFINITE</B></PRE>
<DL>
<DD>The max of connections these can be created by the pool</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="setResetOnRelease(boolean)"><!-- --></A><H3>
setResetOnRelease</H3>
<PRE>
public final void <B>setResetOnRelease</B>(boolean reset_on_release)</PRE>
<DL>
<DD>Enables/disables cleanup when the client is being returned to its pool. The default is resetting the connection after each <tt>JCO.releaseClient()</tt>.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>reset_on_release</CODE> - if <tt>true</tt> reset the connection, e.g. free all resources that might have been allocated on either the server side or by the local middleware layer. On systems below SAP 4.0A resetting a connection effectively means closing and subsequently reopening the connection which is a very expensive process. However, several scenarios (e.g. BAPIs) need reinitialized connections while others might not. This depends strongly on the function modules and their implementation in the mySAP system. In certain cases it might be worthwhile to switch the cleanup off for performance reasons. Use with care !</DL>
</DD>
</DL>
<HR>
<A NAME="getResetOnRelease()"><!-- --></A><H3>
getResetOnRelease</H3>
<PRE>
public final boolean <B>getResetOnRelease</B>()</PRE>
<DL>
<DD>Returns <tt>true</tt> if a connection is being cleaned up in <tt>JCO.releaseClient()</tt>, <tt>false</tt> otherwise.<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if a connection is being cleaned up, <tt>false</tt> otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="setAbapDebug(boolean)"><!-- --></A><H3>
setAbapDebug</H3>
<PRE>
public void <B>setAbapDebug</B>(boolean debug)</PRE>
<DL>
<DD>Enables/disables ABAP debug. This property only affects future connections that will be created by the pool. It should be set before the first usage of the pool. All connections that have already been opened and are held by the pool or the by application wont be affected. Use <tt>JCO.Client.setAbapDebug</tt> for activating the ABAP debugger on a particular connection.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>debug</CODE> - if <tt>true</tt> enables ABAP debugging, disables it otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="getAbapDebug()"><!-- --></A><H3>
getAbapDebug</H3>
<PRE>
public final boolean <B>getAbapDebug</B>()</PRE>
<DL>
<DD>Returns <tt>true</tt> if ABAP debugging is enabled for the connections of this pool, and <tt>false</tt> otherwise.<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if ABAP debugging is enabled, <tt>false</tt> otherwise<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setAbapDebug(boolean)"><CODE>setAbapDebug(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getTrace()"><!-- --></A><H3>
getTrace</H3>
<PRE>
public final boolean <B>getTrace</B>()</PRE>
<DL>
<DD>Returns whether trace for this pool is enabled or not.<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if trace is enabled, <tt>false</tt> otherwise</DL>
</DD>
</DL>
<HR>
<A NAME="setTrace(boolean)"><!-- --></A><H3>
setTrace</H3>
<PRE>
public final void <B>setTrace</B>(boolean trace)</PRE>
<DL>
<DD>Enables/disables RFC tracing for the connections of the pool.<br> This property only affects future connections that will be created by the pool. It should be set before the first usage of the pool. All connections that have already been opened and are held by the pool or the by application wont be affected. Use <tt>JCO.Client.setTrace</tt> for activating the RFC trace on a particular connection.<br><DD><DL>
<DT><B>Parameters:</B><DD><CODE>trace</CODE> - if <tt>true</tt> enables the trace and disables it otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public final java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Returns the pool's name<DD><DL>
<DT><B>Returns:</B><DD>the name of the pool</DL>
</DD>
</DL>
<HR>
<A NAME="getPoolManager()"><!-- --></A><H3>
getPoolManager</H3>
<PRE>
public final <A HREF="../../../../com/sap/mw/jco/JCO.PoolManager.html">JCO.PoolManager</A> <B>getPoolManager</B>()</PRE>
<DL>
<DD>Returns the pool manager this pool is a member of<DD><DL>
<DT><B>Returns:</B><DD>the pool manager</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxPoolSize()"><!-- --></A><H3>
getMaxPoolSize</H3>
<PRE>
public final int <B>getMaxPoolSize</B>()</PRE>
<DL>
<DD>Returns the maximum number of connections that will be pooled. If <br><tt>getMaxPoolSize() < getMaxConnections()</tt><br> the superfluous connections will be closed immediately.<DD><DL>
<DT><B>Returns:</B><DD>the max. number of connections that will be held by this pool<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#setMaxPoolSize(int)"><CODE>setMaxPoolSize(int)</CODE></A>,
<A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#getMaxConnections()"><CODE>getMaxConnections()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setMaxPoolSize(int)"><!-- --></A><H3>
setMaxPoolSize</H3>
<PRE>
public final void <B>setMaxPoolSize</B>(int max_pool_size)</PRE>
<DL>
<DD>Sets the maximum number of connections which will be held open by the pool for possible future reuse after they have been released. If this number is exceeded all further connections will be closed on release. <em>Note: If <tt>max_pool_size</tt> is greater than <tt>getMaxConnections()</tt> the max count of allocable connections will be set to <tt>max_pool_size</tt>.</em><DD><DL>
<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if <tt>max_pool_size</tt> is less than zero.<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.Pool.html#getMaxConnections()"><CODE>getMaxConnections()</CODE></A></DL>
</DD>
</DL>
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -