Package com.common.datatype

Examples of com.common.datatype.SystemType


      st.setNetNames(netNames);
      Map<String, NetInterfaceConfig> netConfigs = new HashMap<String, NetInterfaceConfig>();
      Map<String, NetInterfaceStat> netStats = new HashMap<String, NetInterfaceStat>();
      Map<String, Double> netRxSpeed = new HashMap<String, Double>();
      Map<String, Double> netTxSpeed = new HashMap<String, Double>();
      SystemType stTemp = stList.get(stList.size() - 1);
      for (int i = 0; i < netNames.length; i++) {
        // if (netNames[i].toLowerCase().equals("lo")) {
        // continue;
        // }
        NetInterfaceConfig netConfig = sigar
            .getNetInterfaceConfig(netNames[i]);
        NetInterfaceStat netStat = sigar
            .getNetInterfaceStat(netNames[i]);
        netConfigs.put(netNames[i], netConfig);
        netStats.put(netNames[i], netStat);
        double doubRx = 0.0;
        double doubTx = 0.0;
        if (stTemp != null && stTemp.getNetStats() != null) {
          NetInterfaceStat netStatTemp = stTemp.getNetStats().get(
              netNames[i]);
          if (netStatTemp != null && netStatTemp.getRxBytes() > 0
              && netStatTemp.getTxBytes() > 0) {
            doubRx = (netStat.getRxBytes() - netStatTemp
                .getRxBytes()) / 5;
View Full Code Here

TOP

Related Classes of com.common.datatype.SystemType

Copyright © 2018 www.massapicom. 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.