org.apache.hadoop.ipc.Server.getCallQueueLen()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(100)

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

Server.getCallQueueLen介绍

[英]The number of rpc calls in the queue.
[中]队列中的rpc调用数。

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-common

@Metric("Length of the call queue") public int callQueueLength() {
 return server.getCallQueueLen();
}

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

/**
 * @inheritDoc
 */
public int getCallQueueLen() {
 return myServer.getCallQueueLen();
}

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * @inheritDoc
 */
public int getCallQueueLen() {
 return myServer.getCallQueueLen();
}

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

@Metric("Length of the call queue") public int callQueueLength() {
 return server.getCallQueueLen();
}

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

@Metric("Length of the call queue") public int callQueueLength() {
 return server.getCallQueueLen();
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Metric("Length of the call queue") public int callQueueLength() {
 return server.getCallQueueLen();
}

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

@Metric("Length of the call queue") public int callQueueLength() {
 return server.getCallQueueLen();
}

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

/**
 * Push the metrics to the monitoring subsystem on doUpdate() call.
 */
public void doUpdates(MetricsContext context) {
 
 synchronized (this) {
  // ToFix - fix server to use the following two metrics directly so
  // the metrics do not have be copied here.
  numOpenConnections.set(myServer.getNumOpenConnections());
  callQueueLen.set(myServer.getCallQueueLen());
  for (MetricsBase m : registry.getMetricsList()) {
   m.pushMetric(metricsRecord);
  }
 }
 metricsRecord.update();
}

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

while (server.getCallQueueLen() != 1
  && countThreads(CallQueueManager.class.getName()) != 1
  && countThreads(TestProtocol.class.getName()) != 1) {

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

while (server.getCallQueueLen() != 1
  && countThreads(CallQueueManager.class.getName()) != 1
  && countThreads(TestProtocol.class.getName()) != 1) {

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

while (server.getCallQueueLen() != 1
  && countThreads(CallQueueManager.class.getName()) != 1) {
 Thread.sleep(100);

相关文章

微信公众号

最新文章

更多