def __init__(self, src_site, dst_site): self.id = utils.next_id() self.src_site = src_site self.dst_site = dst_site self.total_transferred = 0 self.network_price_chf = {0: 0.0000000, 1: 0.0000000, 1024: 0.0000000, 10240: 0.0000000} self.link_list = []
def __init__(self, rse_obj, file_obj, rse_index): self.id = utils.next_id() self.rse_obj = rse_obj self.file = file_obj self.rse_index = rse_index self.size = 0 self.state = self.CORRUPTED
def __init__(self, file, linkselector, dst_replica): self.id = utils.next_id() self.file = file self.linkselector = linkselector self.dst_replica = dst_replica self.dst_rse = dst_replica.rse_obj self.start_time = 0 self.end_time = 0 self.last_update_time = None self.link = None self.state = self.INIT
def __init__(self, linkselector, bandwidth): self.id = utils.next_id() self.linkselector = linkselector self.bandwidth = bandwidth # 2**30 self.used_traffic = 0 self.active_transfers = 0
def __init__(self, compute_instance, input_files): self.id = utils.next_id() self.compute_instance = compute_instance self.input_files = input_files self.output_files = []