def __init__(self, bucket, op_type, **kwargs): super(Guest, self).__init__() self.bucket = bucket self.op_type = op_type self.op_count = 1 self.result = None self.exception = None if 'op_count' in kwargs: self.op_count = kwargs['op_count'] Guest.scenarios = get_all_scenarios(Guest)
def __init__(self, task, cluster, cluster_util): super(Cluster, self).__init__() self.task = task self.cluster = cluster self.cluster_util = cluster_util self.rebalance_task = None self.spare_nodes = list() self.node_service_mapping = dict() self.update_nodes_in_cluster() Cluster.scenarios = get_all_scenarios(Cluster)
def __init__(self, bucket, op_type, **kwargs): super(Hotel, self).__init__() self.bucket = bucket self.op_type = op_type self.op_count = 1 self.result = None self.exception = None if 'num_items' in kwargs: self.num_items = kwargs['num_items'] if 'op_count' in kwargs: self.op_count = kwargs['op_count'] Hotel.scenarios = get_all_scenarios(Hotel)
def __init__(self, bucket, tenant_scope, op_type, **kwargs): super(Airline, self).__init__() self.bucket = bucket self.tenant_scope = tenant_scope self.op_type = op_type self.op_count = 1 self.result = None self.exception = None if 'num_items' in kwargs: self.num_items = kwargs['num_items'] if 'op_count' in kwargs: self.op_count = kwargs['op_count'] Airline.scenarios = get_all_scenarios(Airline)