tcp = sigar.getTcp();
final Tcp tcp = sigar.getTcp(); tcpStats = NetworkStats.TcpStats.create( tcp.getActiveOpens(),
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"); }
public Tcp getTcp() throws SigarException {return _sigar.getTcp();}
public long getVal() throws StatUnreachableException { try { long curr = sigar.getTcp().getInErrs(); long rtn = curr - last; last = curr; return rtn; } catch (SigarException e) { throw new StatUnreachableException(e.getMessage(), e); } } });
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); } } });
tcp = sigar.getTcp();
tcp = sigar.getTcp();
tcp = sigar.getTcp();
tcp = sigar.getTcp();
tcp = sigar.getTcp();
Tcp tcp = sigar.getTcp(); long currEstab = tcp.getCurrEstab();
/** * called on each poll * * @throws SigarException * @throws MonitorConfigurationException */ void refresh() throws SigarException, MonitorConfigurationException { try { this.swap = this.sigar.getSwap(); this.memory = this.sigar.getMem(); this.cpu = this.sigar.getCpu(); this.cpuPerc = this.sigar.getCpuPerc(); if( !OperatingSystemType.getCurrentOsType().equals( OperatingSystemType.AIX ) ) { this.netstat = this.sigar.getNetStat(); this.tcp = this.sigar.getTcp(); } this.loadAvrg = new SigarLoadAverage( this.sigar ); } catch( Exception e ) { final String errorMsg = "Error retrieving data from the Sigar monitoring system"; log.error( errorMsg, e ); throw new MonitorConfigurationException( errorMsg, e ); } }
final Tcp tcp = sigar.getTcp(); tcpStats = NetworkStats.TcpStats.create( tcp.getActiveOpens(),
final Tcp tcp = sigar.getTcp(); tcpStats = NetworkStats.TcpStats.create( tcp.getActiveOpens(),