當前位置: 首頁>>代碼示例>>Java>>正文


Java SelectChannelConnector.setLowResourceMaxIdleTime方法代碼示例

本文整理匯總了Java中org.mortbay.jetty.nio.SelectChannelConnector.setLowResourceMaxIdleTime方法的典型用法代碼示例。如果您正苦於以下問題:Java SelectChannelConnector.setLowResourceMaxIdleTime方法的具體用法?Java SelectChannelConnector.setLowResourceMaxIdleTime怎麽用?Java SelectChannelConnector.setLowResourceMaxIdleTime使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.mortbay.jetty.nio.SelectChannelConnector的用法示例。


在下文中一共展示了SelectChannelConnector.setLowResourceMaxIdleTime方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createDefaultChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
@InterfaceAudience.Private
public static Connector createDefaultChannelConnector() {
  SelectChannelConnector ret = new SelectChannelConnector();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  if(Shell.WINDOWS) {
    // result of setting the SO_REUSEADDR flag is different on Windows
    // http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx
    // without this 2 NN's can start on the same machine and listen on 
    // the same port with indeterminate routing of incoming requests to them
    ret.setReuseAddress(false);
  }
  ret.setHeaderBufferSize(1024*64);
  return ret;
}
 
開發者ID:huiyi-learning,項目名稱:hardfs,代碼行數:18,代碼來源:HttpServer.java

示例2: createDefaultChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
@InterfaceAudience.Private
public static Connector createDefaultChannelConnector() {
  SelectChannelConnector ret = new SelectChannelConnector();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  if(Shell.WINDOWS) {
    // result of setting the SO_REUSEADDR flag is different on Windows
    // http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx
    // without this 2 NN's can start on the same machine and listen on
    // the same port with indeterminate routing of incoming requests to them
    ret.setReuseAddress(false);
  }
  ret.setHeaderBufferSize(1024*64);
  return ret;
}
 
開發者ID:nucypher,項目名稱:hadoop-oss,代碼行數:18,代碼來源:HttpServer2.java

示例3: createDefaultChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
@InterfaceAudience.Private
public static Connector createDefaultChannelConnector() {
  SelectChannelConnector ret = new SelectChannelConnectorWithSafeStartup();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  if(Shell.WINDOWS) {
    // result of setting the SO_REUSEADDR flag is different on Windows
    // http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx
    // without this 2 NN's can start on the same machine and listen on 
    // the same port with indeterminate routing of incoming requests to them
    ret.setReuseAddress(false);
  }
  ret.setHeaderBufferSize(1024*64);
  return ret;
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:18,代碼來源:HttpServer.java

示例4: createDefaultChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
@InterfaceAudience.Private
public static Connector createDefaultChannelConnector() {
  SelectChannelConnector ret = new SelectChannelConnectorWithSafeStartup();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  if(Shell.WINDOWS) {
    // result of setting the SO_REUSEADDR flag is different on Windows
    // http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx
    // without this 2 NN's can start on the same machine and listen on
    // the same port with indeterminate routing of incoming requests to them
    ret.setReuseAddress(false);
  }
  ret.setHeaderBufferSize(1024*64);
  return ret;
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:18,代碼來源:HttpServer2.java

示例5: configureChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
private static void configureChannelConnector(SelectChannelConnector c) {
  c.setLowResourceMaxIdleTime(10000);
  c.setAcceptQueueSize(128);
  c.setResolveNames(false);
  c.setUseDirectBuffers(false);
  if(Shell.WINDOWS) {
    // result of setting the SO_REUSEADDR flag is different on Windows
    // http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx
    // without this 2 NN's can start on the same machine and listen on
    // the same port with indeterminate routing of incoming requests to them
    c.setReuseAddress(false);
  }
  c.setHeaderBufferSize(1024*64);
}
 
開發者ID:hopshadoop,項目名稱:hops,代碼行數:15,代碼來源:HttpServer2.java

示例6: createDefaultChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
static Connector createDefaultChannelConnector() {
  SelectChannelConnector ret = new SelectChannelConnector();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  return ret;
}
 
開發者ID:apache,項目名稱:tajo,代碼行數:9,代碼來源:HttpServer.java

示例7: createDefaultChannelConnector

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
public static Connector createDefaultChannelConnector() {
  SelectChannelConnector ret = new SelectChannelConnector();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  return ret;   
}
 
開發者ID:Seagate,項目名稱:hadoop-on-lustre,代碼行數:9,代碼來源:HttpServer.java

示例8: createBaseListener

import org.mortbay.jetty.nio.SelectChannelConnector; //導入方法依賴的package包/類
/**
 * Create a required listener for the Jetty instance listening on the port
 * provided. This wrapper and all subclasses must create at least one
 * listener.
 */
protected Connector createBaseListener(Configuration conf)
    throws IOException {
  SelectChannelConnector ret = new SelectChannelConnector();
  ret.setLowResourceMaxIdleTime(10000);
  ret.setAcceptQueueSize(128);
  ret.setResolveNames(false);
  ret.setUseDirectBuffers(false);
  return ret;
}
 
開發者ID:thisisvoa,項目名稱:hadoop-0.20,代碼行數:15,代碼來源:HttpServer.java


注:本文中的org.mortbay.jetty.nio.SelectChannelConnector.setLowResourceMaxIdleTime方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。