org.mortbay.jetty.Server.getThreadPool()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中org.mortbay.jetty.Server.getThreadPool()方法的一些代码示例,展示了Server.getThreadPool()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getThreadPool()方法的具体详情如下:
包路径:org.mortbay.jetty.Server
类名称:Server
方法名:getThreadPool

Server.getThreadPool介绍

暂无

代码示例

代码示例来源:origin: azkaban/azkaban

@Override
public int getNumThreads() {
 return this.server.getThreadPool().getThreads();
}

代码示例来源:origin: azkaban/azkaban

@Override
public int getNumIdleThreads() {
 return this.server.getThreadPool().getIdleThreads();
}

代码示例来源:origin: com.linkedin.azkaban/azkaban-common

@Override
public int getNumThreads() {
 return this.server.getThreadPool().getThreads();
}

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

public void join() throws InterruptedException 
{
  getThreadPool().join();
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

@Override
public int getNumIdleThreads() {
  return this.server.getThreadPool().getIdleThreads();
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

@Override
public int getNumThreads() {
  return this.server.getThreadPool().getThreads();
}

代码示例来源:origin: com.linkedin.azkaban/azkaban-common

@Override
public int getNumIdleThreads() {
 return this.server.getThreadPool().getIdleThreads();
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool();
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: org.apache.tajo/tajo-core

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool();
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: io.hops/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool();
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: apache/hama

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool();
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: apache/tajo

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool();
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: org.apache.hama/hama-core

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool();
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

代码示例来源:origin: io.fabric8/fabric-hadoop

/**
 * Set the min, max number of worker threads (simultaneous connections).
 */
public void setThreads(int min, int max) {
 QueuedThreadPool pool = (QueuedThreadPool) webServer.getThreadPool() ;
 pool.setMinThreads(min);
 pool.setMaxThreads(max);
}

相关文章