本文整理了Java中org.apache.hadoop.ipc.Server.getNumOpenConnections()
方法的一些代码示例,展示了Server.getNumOpenConnections()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getNumOpenConnections()
方法的具体详情如下:
包路径:org.apache.hadoop.ipc.Server
类名称:Server
方法名:getNumOpenConnections
[英]The number of open RPC conections
[中]打开的RPC连接数
代码示例来源:origin: apache/hive
public int getNumOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源:origin: org.apache.hadoop/hadoop-common
@Metric("Number of open connections") public int numOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源:origin: com.facebook.hadoop/hadoop-core
/**
* @inheritDoc
*/
public int getNumOpenConnections() {
return myServer.getNumOpenConnections();
}
代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core
/**
* @inheritDoc
*/
public int getNumOpenConnections() {
return myServer.getNumOpenConnections();
}
代码示例来源:origin: org.apache.hive/hive-llap-client
public int getNumOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源:origin: ch.cern.hadoop/hadoop-common
@Metric("Number of open connections") public int numOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源:origin: io.hops/hadoop-common
@Metric("Number of open connections") public int numOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-common
@Metric("Number of open connections") public int numOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
@Metric("Number of open connections") public int numOpenConnections() {
return server.getNumOpenConnections();
}
代码示例来源: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
final InetSocketAddress addr = NetUtils.getConnectAddress(server);
server.start();
assertEquals(0, server.getNumOpenConnections());
assertEquals(5, server.getNumOpenConnections());
代码示例来源:origin: ch.cern.hadoop/hadoop-common
final InetSocketAddress addr = NetUtils.getConnectAddress(server);
server.start();
assertEquals(0, server.getNumOpenConnections());
assertEquals(6, server.getNumOpenConnections());
内容来源于网络,如有侵权,请联系作者删除!