Examples of TCPStatObject


Examples of systeminformationmonitor.system.object.TCPStatObject

    public void prepare() {
    }

    @Override
    public void update() {
        TCPStatObject tcpObj = getTCPStat();
        threadLock.lock()// block until condition holds
        try {
            ChartPanel chart = (ChartPanel) SystemInformationMonitorApp.getApplication().getView().getTcpJPanel();
            CategoryPlot plot = (CategoryPlot) chart.getChart().getPlot();
            TCPSegmentModel model = (TCPSegmentModel) plot.getDataset();
View Full Code Here

Examples of systeminformationmonitor.system.object.TCPStatObject

            threadLock.unlock();
        }
    }

    private TCPStatObject getTCPStat() {
        TCPStatObject tcpObj = new TCPStatObject();
        try {
            Tcp stat = sigar.getTcp();
            tcpObj.setActiveOpens(stat.getActiveOpens());
            tcpObj.setPassiveOpens(stat.getPassiveOpens());
            tcpObj.setAttemptFails(stat.getAttemptFails());
            tcpObj.setEstabResets(stat.getEstabResets());
            tcpObj.setCurrentEstab(stat.getCurrEstab());
            tcpObj.setInSegs(stat.getInSegs());
            tcpObj.setOutSegs(stat.getOutSegs());
            tcpObj.setRetransSegs(stat.getRetransSegs());
            tcpObj.setInErrs(stat.getInErrs());
            tcpObj.setOutRsts(stat.getOutRsts());
        } catch (SigarException ex) {
            Logger.getLogger(NetStat.class.getName()).log(Level.SEVERE, null, ex);
        }

        return tcpObj;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.