.put("sys/tcp/out/segs", tcp.getOutSegs()) .put("sys/tcp/out/rsts", tcp.getOutRsts()) .put("sys/tcp/retrans/segs", tcp.getRetransSegs()) .build() );
tcp.getInSegs(), tcp.getOutSegs(), tcp.getRetransSegs(), tcp.getInErrs(), tcp.getOutRsts());
private void outputTcpStats() throws SigarException { Tcp stat = this.sigar.getTcp(); final String dnt = " "; println(dnt + stat.getActiveOpens() + " active connections openings"); println(dnt + stat.getPassiveOpens() + " passive connection openings"); println(dnt + stat.getAttemptFails() + " failed connection attempts"); println(dnt + stat.getEstabResets() + " connection resets received"); println(dnt + stat.getCurrEstab() + " connections established"); println(dnt + stat.getInSegs() + " segments received"); println(dnt + stat.getOutSegs() + " segments send out"); println(dnt + stat.getRetransSegs() + " segments retransmited"); println(dnt + stat.getInErrs() + " bad segments received."); println(dnt + stat.getOutRsts() + " resets sent"); }
@Override public float poll() { return fixLongValue( sigarWrapper.tcp.getRetransSegs() ); } };
public long getVal() throws StatUnreachableException { try { long curr = sigar.getTcp().getRetransSegs(); long rtn = curr - last; last = curr; if (isFirst) { isFirst = false; throw new StatUnreachableException("don't return first value"); } return rtn; } catch (SigarException e) { throw new StatUnreachableException(e.getMessage(), e); } } });
.put("sys/tcp/out/segs", tcp.getOutSegs()) .put("sys/tcp/out/rsts", tcp.getOutRsts()) .put("sys/tcp/retrans/segs", tcp.getRetransSegs()) .build() );
.put("sys/tcp/out/segs", tcp.getOutSegs()) .put("sys/tcp/out/rsts", tcp.getOutRsts()) .put("sys/tcp/retrans/segs", tcp.getRetransSegs()) .build() );
.put("sys/tcp/out/segs", tcp.getOutSegs()) .put("sys/tcp/out/rsts", tcp.getOutRsts()) .put("sys/tcp/retrans/segs", tcp.getRetransSegs()) .build() );
.put("sys/tcp/out/segs", tcp.getOutSegs()) .put("sys/tcp/out/rsts", tcp.getOutRsts()) .put("sys/tcp/retrans/segs", tcp.getRetransSegs()) .build() );
.put("sys/tcp/out/segs", tcp.getOutSegs()) .put("sys/tcp/out/rsts", tcp.getOutRsts()) .put("sys/tcp/retrans/segs", tcp.getRetransSegs()) .build() );
definitions.add(new Definition("sigar.network.tcp.segments.retrans", "Retransmitted segments", "Retransmitted segments", "count", () -> sigar.getTcp().getRetransSegs())); definitions.add(new Definition("sigar.network.tcp.resets.out", "Sent resets", "Sent resets", "count",
tcp.getInSegs(), tcp.getOutSegs(), tcp.getRetransSegs(), tcp.getInErrs(), tcp.getOutRsts());
tcp.getInSegs(), tcp.getOutSegs(), tcp.getRetransSegs(), tcp.getInErrs(), tcp.getOutRsts());