当前位置: 首页>>代码示例>>Java>>正文


Java SelectChannelConnector.setResolveNames方法代码示例

本文整理汇总了Java中org.mortbay.jetty.nio.SelectChannelConnector.setResolveNames方法的典型用法代码示例。如果您正苦于以下问题:Java SelectChannelConnector.setResolveNames方法的具体用法?Java SelectChannelConnector.setResolveNames怎么用?Java SelectChannelConnector.setResolveNames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.mortbay.jetty.nio.SelectChannelConnector的用法示例。


在下文中一共展示了SelectChannelConnector.setResolveNames方法的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.setResolveNames方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。