⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultagiserver.html

📁 关于asterisk的java包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DL><DD>Sets the number of worker threads in the thread pool. <p> This is the number of threads that are available even if they are idle. <p> The default pool size is 10.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>poolSize</CODE> - the size of the worker thread pool.</DL></DD></DL><HR><A NAME="setMaximumPoolSize(int)"><!-- --></A><H3>setMaximumPoolSize</H3><PRE>public void <B>setMaximumPoolSize</B>(int&nbsp;maximumPoolSize)</PRE><DL><DD>Sets the maximum number of worker threads in the thread pool. <p> This equals the maximum number of concurrent requests this AgiServer can serve. <p> The default maximum pool size is 100.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maximumPoolSize</CODE> - the maximum size of the worker thread pool.</DL></DD></DL><HR><A NAME="setBindPort(int)"><!-- --></A><H3>setBindPort</H3><PRE>public void <B>setBindPort</B>(int&nbsp;bindPort)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../org/asteriskjava/fastagi/DefaultAgiServer.html#setPort(int)"><CODE>setPort(int)</CODE></A> instead</I><P><DD>Sets the TCP port to listen on for new connections. <p> The default port is 4573.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bindPort</CODE> - the port to bind to.</DL></DD></DL><HR><A NAME="setPort(int)"><!-- --></A><H3>setPort</H3><PRE>public void <B>setPort</B>(int&nbsp;port)</PRE><DL><DD>Sets the TCP port to listen on for new connections. <p> The default port is 4573.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - the port to bind to.<DT><B>Since:</B></DT>  <DD>0.2</DD></DL></DD></DL><HR><A NAME="setMappingStrategy(org.asteriskjava.fastagi.MappingStrategy)"><!-- --></A><H3>setMappingStrategy</H3><PRE>public void <B>setMappingStrategy</B>(<A HREF="../../../org/asteriskjava/fastagi/MappingStrategy.html" title="interface in org.asteriskjava.fastagi">MappingStrategy</A>&nbsp;mappingStrategy)</PRE><DL><DD>Sets the strategy to use for mapping AgiRequests to AgiScripts that serve them. <p> The default mapping strategy is a ResourceBundleMappingStrategy.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mappingStrategy</CODE> - the mapping strategy to use.<DT><B>See Also:</B><DD><A HREF="../../../org/asteriskjava/fastagi/ResourceBundleMappingStrategy.html" title="class in org.asteriskjava.fastagi"><CODE>ResourceBundleMappingStrategy</CODE></A></DL></DD></DL><HR><A NAME="createServerSocket()"><!-- --></A><H3>createServerSocket</H3><PRE>protected <A HREF="../../../org/asteriskjava/util/ServerSocketFacade.html" title="interface in org.asteriskjava.util">ServerSocketFacade</A> <B>createServerSocket</B>()                                         throws java.io.IOException</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="startup()"><!-- --></A><H3>startup</H3><PRE>public void <B>startup</B>()             throws java.io.IOException,                    java.lang.IllegalStateException</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../org/asteriskjava/fastagi/AgiServer.html#startup()">AgiServer</A></CODE></B></DD><DD>Starts this AgiServer.<p> After calling startup() this AgiServer is ready to receive requests from Asterisk servers and process them.<p> Note that this method will not return until the AgiServer has been shut down. If you want to run the AgiServer in the background use wrap it with an  <A HREF="../../../org/asteriskjava/fastagi/AgiServerThread.html" title="class in org.asteriskjava.fastagi"><CODE>AgiServerThread</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/asteriskjava/fastagi/AgiServer.html#startup()">startup</A></CODE> in interface <CODE><A HREF="../../../org/asteriskjava/fastagi/AgiServer.html" title="interface in org.asteriskjava.fastagi">AgiServer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if the server socket cannot be bound.<DD><CODE>java.lang.IllegalStateException</CODE> - if this AgiServer is already running.</DL></DD></DL><HR><A NAME="run()"><!-- --></A><H3>run</H3><PRE>public void <B>run</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="die()"><!-- --></A><H3>die</H3><PRE>public void <B>die</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="shutdown()"><!-- --></A><H3>shutdown</H3><PRE>public void <B>shutdown</B>()              throws java.lang.IllegalStateException</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../org/asteriskjava/fastagi/AgiServer.html#shutdown()">AgiServer</A></CODE></B></DD><DD>Stops this AgiServer.<p> The server socket is closed, new connections are refused and resources  are freed. Any running <A HREF="../../../org/asteriskjava/fastagi/AgiScript.html" title="interface in org.asteriskjava.fastagi"><CODE>AgiScript</CODE></A>s are finish before shutdown completes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/asteriskjava/fastagi/AgiServer.html#shutdown()">shutdown</A></CODE> in interface <CODE><A HREF="../../../org/asteriskjava/fastagi/AgiServer.html" title="interface in org.asteriskjava.fastagi">AgiServer</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if this AgiServer is already shut down or             has not yet been started.</DL></DD></DL><HR><A NAME="finalize()"><!-- --></A><H3>finalize</H3><PRE>protected void <B>finalize</B>()                 throws java.lang.Throwable</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>finalize</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Throwable</CODE></DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;args)                 throws java.lang.Exception</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DefaultAgiServer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>Asterisk-Java</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/asteriskjava/fastagi/CompositeMappingStrategy.html" title="class in org.asteriskjava.fastagi"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/asteriskjava/fastagi/InvalidCommandSyntaxException.html" title="class in org.asteriskjava.fastagi"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/asteriskjava/fastagi/DefaultAgiServer.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DefaultAgiServer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR>Copyright &copy; 2004-2007 Stefan Reuter. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -