Examples of SystemType


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

Examples of org.mitre.oval.xmlSchema.ovalResults5.SystemType

      definitionResultMap = Collections.emptyMap();
    } else {
      this.status = AssessmentResult.Status.SUCCESSFUL;
      this.statusMessage = null;

      SystemType system = systems.iterator().next();
      DefinitionsType definitions = system.getDefinitions();
      definitionResultMap = new HashMap<String, OVALDefinitionResult>(
          definitions.sizeOfDefinitionArray());

      OVALResolver ovalResolver = assessmentFile.getOvalResolver();
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.