本文整理了Java中org.apache.hadoop.ipc.Server.getCallQueueLen()
方法的一些代码示例,展示了Server.getCallQueueLen()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getCallQueueLen()
方法的具体详情如下:
包路径:org.apache.hadoop.ipc.Server
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!