Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)