@Test public void getTotalNumberOfCpusOnServers() { assertEquals(5, getTestClusterState().getTotalNumberOfCpusInOnServers()); }
public int getTotalNumberOfCpusInOnServers() { int result = 0; for (Host host: getOnHosts()) { result += host.getTotalCpus(); } return result; }
ClusterState { public int getTotalNumberOfCpusInOnServers() { int result = 0; for (Host host: getOnHosts()) { result += host.getTotalCpus(); } return result; } }
ClusterState { public int getTotalNumberOfCpusInOnServers() { int result = 0; for (Host host: getOnHosts()) { result += host.getTotalCpus(); } return result; } ClusterState(List<Vm> vms, List<Host> hosts); }
ClusterState { public int getTotalNumberOfCpusInOnServers() { int result = 0; for (Host host: getOnHosts()) { result += host.getTotalCpus(); } return result; } ClusterState(List<Vm> vms, List<Host> hosts); List<Host> getTurnedOffHosts(); List<Host> getHostsWithoutVmsAndSwitchedOn(); int getTotalNumberOfCpusInOnServers(); }
ClusterState { public int getTotalNumberOfCpusInOnServers() { int result = 0; for (Host host: getOnHosts()) { result += host.getTotalCpus(); } return result; } ClusterState(List<Vm> vms, List<Host> hosts); List<Host> getTurnedOffHosts(); List<Host> getHostsWithoutVmsAndSwitchedOn(); int getTotalNumberOfCpusInOnServers();  }