def __init__(self, config): self.config = config avail_clouds = Clouds(self.config) self.database = Database() self.list = list() a=0 for benchmark in self.config.benchmarking.list: a=a+1 LOG.debug("Creating cluster for benchmark: " + benchmark.name) cluster_name = "cluster-"+str(self.database.countcluster()+a) self.list.append(Cluster(self.config, avail_clouds, benchmark, cluster_name, self.database))
class Clusters(object): """ Clusters class represents a collection of clusters specified in the benchmarking file """ def __init__(self, config): self.config = config avail_clouds = Clouds(self.config) self.database = Database() self.list = list() a=0 for benchmark in self.config.benchmarking.list: a=a+1 LOG.debug("Creating cluster for benchmark: " + benchmark.name) cluster_name = "cluster-"+str(self.database.countcluster()+a) self.list.append(Cluster(self.config, avail_clouds, benchmark, cluster_name, self.database))