예제 #1
0
파일: storages.py 프로젝트: joseph-v/delfin
 def __init__(self):
     super().__init__()
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.driver_api = driverapi.API()
     self.search_options = [
         'name', 'vendor', 'model', 'status', 'serial_number'
     ]
예제 #2
0
 def __init__(self, ctx, task_id, storage_id, args, interval):
     self.ctx = ctx
     self.task_id = task_id
     self.storage_id = storage_id
     self.args = args
     self.interval = interval
     self.task_rpcapi = task_rpcapi.TaskAPI()
예제 #3
0
 def __init__(self, ctx, task_id, storage_id, args, interval):
     # create an object of periodic task scheduler
     self.ctx = ctx
     self.task_id = task_id
     self.storage_id = storage_id
     self.args = args
     self.interval = interval
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.scheduler = schedule_manager.SchedulerManager().get_scheduler()
     self.stopped = False
     self.job_ids = set()
 def __init__(self, ctx, failed_task_id, storage_id, args, job_id,
              retry_count, start_time, end_time):
     self.ctx = ctx
     self.failed_task_id = failed_task_id
     self.retry_count = retry_count
     self.storage_id = storage_id
     self.job_id = job_id
     self.args = args
     self.start_time = start_time
     self.end_time = end_time
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.scheduler_instance = scheduler.Scheduler.get_instance()
     self.result = TelemetryJobStatus.FAILED_JOB_STATUS_INIT
예제 #5
0
 def __init__(self):
     super().__init__()
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.driver_manager = driver_manager.API()
예제 #6
0
 def __init__(self):
     super().__init__()
     self.task_rpcapi = task_rpcapi.TaskAPI()
예제 #7
0
 def __init__(self):
     self.driver_manager = driver_manager.API()
     self.exporter_manager = base_exporter.AlertExporterManager()
     self.task_rpcapi = rpcapi.TaskAPI()