📄 jcoserver.html
字号:
void <B>setCallHandlerFactory</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerCallHandlerFactory.html" title="interface in com.sap.conn.jco.server">JCoServerCallHandlerFactory</A> callHandlerFactory)</PRE>
<DL>
<DD>Defines the call handler factory that will be used by the JCo runtime to get a handler instance if a remote call is invoked. Factory for the call handlers is required. Until a factory is defined the server instance cannot be started. callHandlerFactory has to be an instance of JCoServerRequestHandlerFactory or JCoServerFunctionHandlerFactory. Otherwise an JCoRuntimeException will be thrown.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>callHandlerFactory</CODE> - to be use by the server<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/DefaultServerHandlerFactory.html" title="class in com.sap.conn.jco.server"><CODE>DefaultServerHandlerFactory</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getCallHandlerFactory()"><!-- --></A><H3>
getCallHandlerFactory</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/server/JCoServerCallHandlerFactory.html" title="interface in com.sap.conn.jco.server">JCoServerCallHandlerFactory</A> <B>getCallHandlerFactory</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>reference to the factory for call handlers set for this server instance</DL>
</DD>
</DL>
<HR>
<A NAME="setTIDHandler(com.sap.conn.jco.server.JCoServerTIDHandler)"><!-- --></A><H3>
setTIDHandler</H3>
<PRE>
void <B>setTIDHandler</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerTIDHandler.html" title="interface in com.sap.conn.jco.server">JCoServerTIDHandler</A> tidManager)</PRE>
<DL>
<DD>Defines the manager instance for the TID. The calls sent in "background task" (tRFC) will contain a TID. To ensure the proper TID handling and to separate the TID handling from the application logic, the TID manger is required, if the application will dispatch the tRFC calls.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tidManager</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="getTIDHandler()"><!-- --></A><H3>
getTIDHandler</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/server/JCoServerTIDHandler.html" title="interface in com.sap.conn.jco.server">JCoServerTIDHandler</A> <B>getTIDHandler</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>reference to the TID handler set for this server instance</DL>
</DD>
</DL>
<HR>
<A NAME="setSecurityHandler(com.sap.conn.jco.server.JCoServerSecurityHandler)"><!-- --></A><H3>
setSecurityHandler</H3>
<PRE>
void <B>setSecurityHandler</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerSecurityHandler.html" title="interface in com.sap.conn.jco.server">JCoServerSecurityHandler</A> securityManager)</PRE>
<DL>
<DD>Defines the security handler for this server instance. Security handler will be invoked by the JCo runtime to check the permissions of the user initiated the remote call
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSecurityHandler()"><!-- --></A><H3>
getSecurityHandler</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/server/JCoServerSecurityHandler.html" title="interface in com.sap.conn.jco.server">JCoServerSecurityHandler</A> <B>getSecurityHandler</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the reference to the security handler set for this server instance</DL>
</DD>
</DL>
<HR>
<A NAME="setServerThreadStarter(com.sap.conn.jco.server.JCoServerThreadStarter)"><!-- --></A><H3>
setServerThreadStarter</H3>
<PRE>
void <B>setServerThreadStarter</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerThreadStarter.html" title="interface in com.sap.conn.jco.server">JCoServerThreadStarter</A> starter)</PRE>
<DL>
<DD>Defines the instance that will starts the server runnable instance. In some environments the starting new threads by Thread.start() is permitted and may be done using special APIs only. In this case the application may provide its own implementation to start the server threads.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>starter</CODE> - instance that starts new server worker threads</DL>
</DD>
</DL>
<HR>
<A NAME="getServerThreadStarter()"><!-- --></A><H3>
getServerThreadStarter</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/server/JCoServerThreadStarter.html" title="interface in com.sap.conn.jco.server">JCoServerThreadStarter</A> <B>getServerThreadStarter</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>reference to the JCoServerThreadStarter, if defined, or null</DL>
</DD>
</DL>
<HR>
<A NAME="addServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)"><!-- --></A><H3>
addServerErrorListener</H3>
<PRE>
void <B>addServerErrorListener</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerErrorListener.html" title="interface in com.sap.conn.jco.server">JCoServerErrorListener</A> listener)</PRE>
<DL>
<DD>Adds an error listener to the list of listeners.<br> If a listener is removed from the list of listeners during firing of an event, it will be notified about the last event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to add<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#removeServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)"><CODE>removeServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="addServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)"><!-- --></A><H3>
addServerExceptionListener</H3>
<PRE>
void <B>addServerExceptionListener</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerExceptionListener.html" title="interface in com.sap.conn.jco.server">JCoServerExceptionListener</A> listener)</PRE>
<DL>
<DD>Adds an exception listener to the list of listeners.<br> If a listener is added as listener during firing of an event, it wont be notified about the last event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to add<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#removeServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)"><CODE>removeServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="addServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)"><!-- --></A><H3>
addServerStateChangedListener</H3>
<PRE>
void <B>addServerStateChangedListener</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerStateChangedListener.html" title="interface in com.sap.conn.jco.server">JCoServerStateChangedListener</A> listener)</PRE>
<DL>
<DD>Adds a state changed listener to the list of listeners.<br> If a listener is removed from the list of listeners during firing of an event, it will be notified about the last event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to add<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#removeServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)"><CODE>removeServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="removeServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)"><!-- --></A><H3>
removeServerErrorListener</H3>
<PRE>
void <B>removeServerErrorListener</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerErrorListener.html" title="interface in com.sap.conn.jco.server">JCoServerErrorListener</A> listener)</PRE>
<DL>
<DD>Removes an error listener from the list of listeners.<br> If a listener is removed from the list of listeners during firing of an event, it will be notified about the last event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#addServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)"><CODE>addServerErrorListener(com.sap.conn.jco.server.JCoServerErrorListener)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="removeServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)"><!-- --></A><H3>
removeServerExceptionListener</H3>
<PRE>
void <B>removeServerExceptionListener</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerExceptionListener.html" title="interface in com.sap.conn.jco.server">JCoServerExceptionListener</A> listener)</PRE>
<DL>
<DD>Removes an exception listener from the list of listeners.<br> If a listener is removed from the list of listeners during firing of an event, it will be notified about the last event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#addServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)"><CODE>addServerExceptionListener(com.sap.conn.jco.server.JCoServerExceptionListener)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="removeServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)"><!-- --></A><H3>
removeServerStateChangedListener</H3>
<PRE>
void <B>removeServerStateChangedListener</B>(<A HREF="../../../../../com/sap/conn/jco/server/JCoServerStateChangedListener.html" title="interface in com.sap.conn.jco.server">JCoServerStateChangedListener</A> listener)</PRE>
<DL>
<DD>Removes a state changed listener from the list of listeners.<br> If a listener is removed from the list of listeners during firing of an event, it will be notified about the last event.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove<DT><B>See Also:</B><DD><A HREF="../../../../../com/sap/conn/jco/server/JCoServer.html#addServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)"><CODE>addServerStateChangedListener(com.sap.conn.jco.server.JCoServerStateChangedListener)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setThroughput(com.sap.conn.jco.JCoThroughput)"><!-- --></A><H3>
setThroughput</H3>
<PRE>
void <B>setThroughput</B>(<A HREF="../../../../../com/sap/conn/jco/JCoThroughput.html" title="interface in com.sap.conn.jco">JCoThroughput</A> throughput)</PRE>
<DL>
<DD>sets the throughput instance to measure the calls dispatched by this server The previously defined throughput instance will be overwritten.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>throughput</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="getThroughput()"><!-- --></A><H3>
getThroughput</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/JCoThroughput.html" title="interface in com.sap.conn.jco">JCoThroughput</A> <B>getThroughput</B>()</PRE>
<DL>
<DD>Returns the throughput instance
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the throughput instance</DL>
</DD>
</DL>
<HR>
<A NAME="removeThroughput()"><!-- --></A><H3>
removeThroughput</H3>
<PRE>
void <B>removeThroughput</B>()</PRE>
<DL>
<DD>Removes the throughput instance from the server. The measuring will be deactivated.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMonitor()"><!-- --></A><H3>
getMonitor</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/monitor/JCoServerMonitor.html" title="interface in com.sap.conn.jco.monitor">JCoServerMonitor</A> <B>getMonitor</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>the monitor instance for this server</DL>
</DD>
</DL>
<HR>
<A NAME="getState()"><!-- --></A><H3>
getState</H3>
<PRE>
<A HREF="../../../../../com/sap/conn/jco/server/JCoServerState.html" title="enum in com.sap.conn.jco.server">JCoServerState</A> <B>getState</B>()</PRE>
<DL>
<DD>Returns the current state of the server instance
<P>
<DD><DL>
<DT><B>Returns:</B><DD>state as JCoServer.State</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_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/JCoServer.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="../../../../../com/sap/conn/jco/server/JCoApplicationAuthorizationException.html" title="class in com.sap.conn.jco.server"><B>PREV CLASS</B></A>
<A HREF="../../../../../com/sap/conn/jco/server/JCoServerAuthorizationData.html" title="interface in com.sap.conn.jco.server"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/sap/conn/jco/server/JCoServer.html" target="_top"><B>FRAMES</B></A>
<A HREF="JCoServer.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<i>Copyright © 2008 SAP AG. All Rights Reserved.</i>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -