@Test public void idleHostReturnsTrueWhenEmpty() { assertTrue(new ServerLoad(0, 0, 0).isIdle()); }
public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle(); }
ServerLoad { public boolean isIdle() { return cpuLoad < 0.05 && ramLoad < 0.05 && diskLoad < 0.05; } ServerLoad(double cpuLoad, double ramLoad, double diskLoad); double getTotalOverload(); double getCpuLoad(); double getRamLoad(); double getDiskLoad(); double getUnusedCpuPerc(); double getUnusedRamPerc(); double getUnusedDiskPerc(); @Override String toString(); boolean isIdle();  }