本文整理了Java中org.hyperic.sigar.NetStat.getAllOutboundTotal()
方法的一些代码示例,展示了NetStat.getAllOutboundTotal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NetStat.getAllOutboundTotal()
方法的具体详情如下:
包路径:org.hyperic.sigar.NetStat
类名称:NetStat
方法名:getAllOutboundTotal
暂无
代码示例来源:origin: apache/incubator-druid
final Map<String, Long> stats = ImmutableMap.<String, Long>builder()
.put("sys/net/inbound", (long) netStat.getAllInboundTotal())
.put("sys/net/outbound", (long) netStat.getAllOutboundTotal())
.put("sys/tcp/inbound", (long) netStat.getTcpInboundTotal())
.put("sys/tcp/outbound", (long) netStat.getTcpOutboundTotal())
代码示例来源:origin: scouter-project/scouter
void netstat() throws SigarException {
long now = System.currentTimeMillis();
if (now - last_time < 10000) {
return;
}
last_time = now;
NetStat net = sigar.getNetStat();
this.net_in = net.getAllInboundTotal();
this.net_out = net.getAllOutboundTotal();
this.tcpstat_close = net.getTcpCloseWait();
this.tcpstat_fin1 = net.getTcpFinWait1();
this.tcpstat_fin2 = net.getTcpFinWait2();
this.tcpstat_time = net.getTcpTimeWait();
this.tcpstat_est = net.getTcpEstablished();
}
代码示例来源:origin: griddynamics/jagger
private static Map<String, String> toMap(NetStat netStat) {
Map<String, String> result = Maps.newHashMap();
result.put("allInboundTotal", "" + netStat.getAllInboundTotal());
result.put("allOutboundTotal", "" + netStat.getAllOutboundTotal());
result.put("tcpBound", "" + netStat.getTcpBound());
result.put("tcpClose", "" + netStat.getTcpClose());
result.put("tcpCloseWait", "" + netStat.getTcpCloseWait());
result.put("tcpClosing", "" + netStat.getTcpClosing());
result.put("tcpEstablished", "" + netStat.getTcpEstablished());
result.put("tcpFinWait1", "" + netStat.getTcpFinWait1());
result.put("tcpFinWait2", "" + netStat.getTcpFinWait2());
result.put("tcpIdle", "" + netStat.getTcpIdle());
result.put("tcpInboundTotal", "" + netStat.getTcpInboundTotal());
result.put("tcpLastAck", "" + netStat.getTcpLastAck());
result.put("tcpListen", "" + netStat.getTcpListen());
result.put("tcpOutboundTotal", "" + netStat.getTcpOutboundTotal());
result.put("tcpStates", "" + netStat.getTcpStates());
result.put("tcpSynRecv", "" + netStat.getTcpSynRecv());
result.put("tcpSynSent", "" + netStat.getTcpSynSent());
result.put("tcpTimeWait", "" + netStat.getTcpTimeWait());
return result;
}
代码示例来源:origin: org.rhq/rhq-core-native-system
public void refresh(NetStat interfaceStat) {
this.tcpStates = interfaceStat.getTcpStates();
this.tcpInboundTotal = interfaceStat.getTcpInboundTotal();
this.tcpOutboundTotal = interfaceStat.getTcpOutboundTotal();
this.allInboundTotal = interfaceStat.getAllInboundTotal();
this.allOutboundTotal = interfaceStat.getAllOutboundTotal();
}
代码示例来源:origin: rhq-project/rhq
public void refresh(NetStat interfaceStat) {
this.tcpStates = interfaceStat.getTcpStates();
this.tcpInboundTotal = interfaceStat.getTcpInboundTotal();
this.tcpOutboundTotal = interfaceStat.getTcpOutboundTotal();
this.allInboundTotal = interfaceStat.getAllInboundTotal();
this.allOutboundTotal = interfaceStat.getAllOutboundTotal();
}
代码示例来源:origin: metamx/java-util
final Map<String, Long> stats = ImmutableMap.<String, Long>builder()
.put("sys/net/inbound", (long) netStat.getAllInboundTotal())
.put("sys/net/outbound", (long) netStat.getAllOutboundTotal())
.put("sys/tcp/inbound", (long) netStat.getTcpInboundTotal())
.put("sys/tcp/outbound", (long) netStat.getTcpOutboundTotal())
代码示例来源:origin: io.druid/java-util
final Map<String, Long> stats = ImmutableMap.<String, Long>builder()
.put("sys/net/inbound", (long) netStat.getAllInboundTotal())
.put("sys/net/outbound", (long) netStat.getAllOutboundTotal())
.put("sys/tcp/inbound", (long) netStat.getTcpInboundTotal())
.put("sys/tcp/outbound", (long) netStat.getTcpOutboundTotal())
代码示例来源:origin: org.apache.druid/java-util
final Map<String, Long> stats = ImmutableMap.<String, Long>builder()
.put("sys/net/inbound", (long) netStat.getAllInboundTotal())
.put("sys/net/outbound", (long) netStat.getAllOutboundTotal())
.put("sys/tcp/inbound", (long) netStat.getTcpInboundTotal())
.put("sys/tcp/outbound", (long) netStat.getTcpOutboundTotal())
代码示例来源:origin: com.metamx/server-metrics
final Map<String, Long> stats = ImmutableMap.<String, Long>builder()
.put("sys/net/inbound", (long) netStat.getAllInboundTotal())
.put("sys/net/outbound", (long) netStat.getAllOutboundTotal())
.put("sys/tcp/inbound", (long) netStat.getTcpInboundTotal())
.put("sys/tcp/outbound", (long) netStat.getTcpOutboundTotal())
代码示例来源:origin: com.metamx/java-util
final Map<String, Long> stats = ImmutableMap.<String, Long>builder()
.put("sys/net/inbound", (long) netStat.getAllInboundTotal())
.put("sys/net/outbound", (long) netStat.getAllOutboundTotal())
.put("sys/tcp/inbound", (long) netStat.getTcpInboundTotal())
.put("sys/tcp/outbound", (long) netStat.getTcpOutboundTotal())
内容来源于网络,如有侵权,请联系作者删除!