예제 #1
0
 def doInit(self, *args, **kwargs):
     """
     Action method.
     """
     self.queue_id = kwargs['queue_id']
     self.start_sequence_id = kwargs['start_sequence_id']
     self.end_sequence_id = kwargs['end_sequence_id']
     self.archive_folder_path = kwargs['archive_folder_path']
     qa, oid, _ = global_id.SplitGlobalQueueID(self.queue_id)
     self.queue_alias = qa
     self.queue_owner_id = oid
     self.queue_owner_idurl = global_id.glob2idurl(self.queue_owner_id)
     self.group_key_id = my_keys.make_key_id(
         alias=self.queue_alias, creator_glob_id=self.queue_owner_id)
     self.suppliers_list = []
     self.ecc_map = None
     self.correctable_errors = 0
     self.requested_list_files = {}
예제 #2
0
 def doInit(self, *args, **kwargs):
     """
     Action method.
     """
     self.queue_id = kwargs['queue_id']
     self.archive_info = kwargs['archive_info']
     self.archive_folder_path = kwargs['archive_folder_path']
     self.result_defer = kwargs.get('result_defer')
     qa, oid, _ = global_id.SplitGlobalQueueID(self.queue_id)
     self.queue_alias = qa
     self.queue_owner_id = oid
     self.queue_owner_idurl = global_id.glob2idurl(self.queue_owner_id)
     self.group_key_id = my_keys.make_key_id(
         alias=self.queue_alias, creator_glob_id=self.queue_owner_id)
     self.backup_job = None
     self.backup_max_block_num = None
     self.suppliers_list = []
     self.ecc_map = None
     self.correctable_errors = 0
     self.packets_out = {}
예제 #3
0
 def isMyOwnArchive(self, *args, **kwargs):
     """
     Condition method.
     """
     _, queue_owner_id, _ = global_id.SplitGlobalQueueID(kwargs['queue_id'])
     return my_id.getID() == queue_owner_id