class ConsolidationScoredPreferenceForSmallHosts extends ConsolidationAlgorithmBase {

    @Override
    protected boolean internalCanPowerOffHost(HostResources hostToPowerOff, CloudResources cloudResources) {
        double expectedCpuUsagePercentage = getCloudExpetedCpuUsageAfterHostShutdown(hostToPowerOff, cloudResources);
        if (expectedCpuUsagePercentage > 0.7) {
            return false;
        }
        double expectedMemoryUsagePercentage = getCloudExpetedMemoryUsagePercentageAfterHostShutdown(hostToPowerOff, cloudResources);
        return expectedMemoryUsagePercentage < 0.7;
    }

}