def create_depot(self, depot_id, replication_factor): """Creates a new depot @type depot_id string @param depot_id the newly created depot will have this uuid @type replication_factor int @param replication_factor the replication of the new depot @rtype Depot instance @return the newly created depot """ depot = Depot(self, depot_id) self.var.add_depot(depot, depot_id, replication_factor, depot.CONSTANTS['STATE_OFFLINE']) depot.setup() self._depot_map[depot_id] = depot return depot