class ScoredClustersAllocationAlgorithmPreferenceForSmallHosts extends AllocationAlgorithmBase {

    protected long calculateClusterScore(ClusterResources cluster) {
        long clusterCpu = cluster.getCpus() * cluster.getCpuSpeed();
        long clusterMemory = cluster.getMemoryInBytes();
        return clusterCpu * clusterMemory;
    }

}