📄 jcoserver.html
字号:
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#setCallHandlerFactory(com.sap.conn.jco.server.JCoServerCallHandlerFactory)">setCallHandlerFactory</A></B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerCallHandlerFactory.html" title="interface in com.sap.conn.jco.server">JCoServerCallHandlerFactory</A> callHandlerFactory)</CODE>
<BR>
Defines the call handler factory that will be used by the JCo runtime to get a handler instance if a remote call is invoked.</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/conn/jco/server/JCoServer.html#setConnectionCount(int)">setConnectionCount</A></B>(int count)</CODE>
<BR>
Defines the count of the registered connections managed by this server instance.</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/conn/jco/server/JCoServer.html#setRepository(com.sap.conn.jco.JCoRepository)">setRepository</A></B>(<A HREF="../../../../../com/sap/conn/jco/JCoRepository.html" title="interface in com.sap.conn.jco">JCoRepository</A> repository)</CODE>
<BR>
sets the repository instance containing the function metadata or being used for the metadata queries.</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/conn/jco/server/JCoServer.html#setSecurityHandler(com.sap.conn.jco.server.JCoServerSecurityHandler)">setSecurityHandler</A></B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerSecurityHandler.html" title="interface in com.sap.conn.jco.server">JCoServerSecurityHandler</A> securityManager)</CODE>
<BR>
Defines the security handler for this server instance.</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/conn/jco/server/JCoServer.html#setServerThreadStarter(com.sap.conn.jco.server.JCoServerThreadStarter)">setServerThreadStarter</A></B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerThreadStarter.html" title="interface in com.sap.conn.jco.server">JCoServerThreadStarter</A> starter)</CODE>
<BR>
Defines the instance that will starts the server runnable instance.</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/conn/jco/server/JCoServer.html#setThroughput(com.sap.conn.jco.JCoThroughput)">setThroughput</A></B>(<A HREF="../../../../../com/sap/conn/jco/JCoThroughput.html" title="interface in com.sap.conn.jco">JCoThroughput</A> throughput)</CODE>
<BR>
sets the throughput instance to measure the calls dispatched by this server The previously defined throughput instance will be overwritten.</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/conn/jco/server/JCoServer.html#setTIDHandler(com.sap.conn.jco.server.JCoServerTIDHandler)">setTIDHandler</A></B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerTIDHandler.html" title="interface in com.sap.conn.jco.server">JCoServerTIDHandler</A> tidManager)</CODE>
<BR>
Defines the manager instance for the TID.</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/conn/jco/server/JCoServer.html#start()">start</A></B>()</CODE>
<BR>
Starts the server.</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/conn/jco/server/JCoServer.html#stop()">stop</A></B>()</CODE>
<BR>
Stops the all server worker instances</TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="start()"><!-- --></A><H3>
start</H3>
<PRE>
void <B>start</B>()</PRE>
<DL>
<DD>Starts the server. The server will open the specified number of connections.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#setConnectionCount(int)"><CODE>setConnectionCount(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="stop()"><!-- --></A><H3>
stop</H3>
<PRE>
void <B>stop</B>()</PRE>
<DL>
<DD>Stops the all server worker instances
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#setConnectionCount(int)"><CODE>setConnectionCount(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setConnectionCount(int)"><!-- --></A><H3>
setConnectionCount</H3>
<PRE>
void <B>setConnectionCount</B>(int count)</PRE>
<DL>
<DD>Defines the count of the registered connections managed by this server instance. This API has to be invoked before the start of the server and may be invoke at runtime. The valid value range is <tt>[1..100]</tt>. Note: in most scenarios 2 connections are enough for the servers serves business calls and 1 connection for the servers used for technical/administrative purposes.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getConnectionCount()"><!-- --></A><H3>
getConnectionCount</H3>
<PRE>
int <B>getConnectionCount</B>()</PRE>
<DL>
<DD>returns the initial connection count for this server
<P>
<DD><DL>
<DT><B>Returns:</B><DD>connection count</DL>
</DD>
</DL>
<HR>
<A NAME="release()"><!-- --></A><H3>
release</H3>
<PRE>
void <B>release</B>()</PRE>
<DL>
<DD>Releases all resources allocated by the server instance. This method can be only used after all server worker threads are stopped.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>JCoRuntimeException</CODE> - in case some workers are still running</DL>
</DD>
</DL>
<HR>
<A NAME="getRepository()"><!-- --></A><H3>
getRepository</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/JCoRepository.html" title="interface in com.sap.conn.jco">JCoRepository</A> <B>getRepository</B>()</PRE>
<DL>
<DD>return the repository instance used by this server instance
<P>
<DD><DL>
<DT><B>Returns:</B><DD>server's repository</DL>
</DD>
</DL>
<HR>
<A NAME="setRepository(com.sap.conn.jco.JCoRepository)"><!-- --></A><H3>
setRepository</H3>
<PRE>
void <B>setRepository</B>(<A HREF="../../../../../com/sap/conn/jco/JCoRepository.html" title="interface in com.sap.conn.jco">JCoRepository</A> repository)</PRE>
<DL>
<DD>sets the repository instance containing the function metadata or being used for the metadata queries.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>repository</CODE> - either a custom repository or a repository connected to an ABAP server</DL>
</DD>
</DL>
<HR>
<A NAME="getGatewayHost()"><!-- --></A><H3>
getGatewayHost</H3>
<PRE>
java.lang.String <B>getGatewayHost</B>()</PRE>
<DL>
<DD>return the gateway host as defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>gateway host as string</DL>
</DD>
</DL>
<HR>
<A NAME="getGatewayService()"><!-- --></A><H3>
getGatewayService</H3>
<PRE>
java.lang.String <B>getGatewayService</B>()</PRE>
<DL>
<DD>return the gateway service (or port) as defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>gateway service as string</DL>
</DD>
</DL>
<HR>
<A NAME="getSAPRouterString()"><!-- --></A><H3>
getSAPRouterString</H3>
<PRE>
java.lang.String <B>getSAPRouterString</B>()</PRE>
<DL>
<DD>return the SAP-Router string as defined by the server configuration. The router string will be used to locate the gateway. The router string contains one or more routers with the follow format <tt>/H/<host name>[/S/<port>][/P/<password>]</tt>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>SAP router string</DL>
</DD>
</DL>
<HR>
<A NAME="getProgramID()"><!-- --></A><H3>
getProgramID</H3>
<PRE>
java.lang.String <B>getProgramID</B>()</PRE>
<DL>
<DD>return the program id as defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>program id as string</DL>
</DD>
</DL>
<HR>
<A NAME="getSncMode()"><!-- --></A><H3>
getSncMode</H3>
<PRE>
boolean <B>getSncMode</B>()</PRE>
<DL>
<DD>returns true if the server is configured to use SNC connection
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if SNC is on</DL>
</DD>
</DL>
<HR>
<A NAME="getMySncName()"><!-- --></A><H3>
getMySncName</H3>
<PRE>
java.lang.String <B>getMySncName</B>()</PRE>
<DL>
<DD>returns SNC name as defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>SNC name as string</DL>
</DD>
</DL>
<HR>
<A NAME="getSncQOP()"><!-- --></A><H3>
getSncQOP</H3>
<PRE>
int <B>getSncQOP</B>()</PRE>
<DL>
<DD>returns QOP of SNC as defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>QOP of SNC as number</DL>
</DD>
</DL>
<HR>
<A NAME="getSncLibrary()"><!-- --></A><H3>
getSncLibrary</H3>
<PRE>
java.lang.String <B>getSncLibrary</B>()</PRE>
<DL>
<DD>returns path to the SNC library as defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>path to the SNC library as string</DL>
</DD>
</DL>
<HR>
<A NAME="getProperty(java.lang.String)"><!-- --></A><H3>
getProperty</H3>
<PRE>
java.lang.String <B>getProperty</B>(java.lang.String key)</PRE>
<DL>
<DD>returns the value for a property defined by the server configuration
<P>
<DD><DL>
<DT><B>Returns:</B><DD>value for the specified property</DL>
</DD>
</DL>
<HR>
<A NAME="getRepositoryDestination()"><!-- --></A><H3>
getRepositoryDestination</H3>
<PRE>
java.lang.String <B>getRepositoryDestination</B>()</PRE>
<DL>
<DD>client destination to obtain the repository. The server will use the repository obtained by getRepository() API from the given destination
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setCallHandlerFactory(com.sap.conn.jco.server.JCoServerCallHandlerFactory)"><!-- --></A><H3>
setCallHandlerFactory</H3>
<PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -