def __init__(self, address, packet): IPTimeMonitorPacket.__init__(self, address, packet) [ self.request_type, self.number_of_files, self.number_of_bytes, self.number_of_resources, self.resource_creation_time, self.factory_start_time ] = self.unpack("Bqqqqq")
def __init__(self, address, packet): """ """ IPTimeMonitorPacket.__init__(self, address, packet) [creation_time_millis] = self.unpack("q") self.creation_time = \ tuple( list( time.gmtime(creation_time_millis / 1000))[0:6]) self.lrm = '' # Workaround a bug in GRAM service sending LRM name + char[].toString() # which yields a java object pointer if the LRM name is shorter than # __MAX_SCHEDULER_SIZE. # We'll parse until we hit the byte \0, \1, or the __MAX_SCHEDULER_SIZE # then strip off everything afer [C if it is present self.lrm = self.unpack_lrm_string() [ self.job_credential_endpoint_used, self.file_stage_in_used, self.file_stage_out_used, self.file_clean_up_used, self.clean_up_hold_used ] = map(lambda x: (x == 1), self.unpack("5B")) [ self.job_type, self.gt2_error_code, self.fault_class ] = self.unpack("3B")
def __init__(self, address, packet): """ """ IPTimeMonitorPacket.__init__(self, address, packet) [creation_time_millis] = self.unpack("q") self.creation_time = \ tuple( list( time.gmtime(creation_time_millis / 1000))[0:6]) self.lrm = '' # Workaround a bug in GRAM service sending LRM name + char[].toString() # which yields a java object pointer if the LRM name is shorter than # __MAX_SCHEDULER_SIZE. # We'll parse until we hit the byte \0, \1, or the __MAX_SCHEDULER_SIZE # then strip off everything afer [C if it is present self.lrm = self.unpack_lrm_string() [ self.job_credential_endpoint_used, self.file_stage_in_used, self.file_stage_out_used, self.file_clean_up_used, self.clean_up_hold_used ] = map(lambda x: (x == 1), self.unpack("5B")) [self.job_type, self.gt2_error_code, self.fault_class] = self.unpack("3B")
def __init__(self, address, packet): IPTimeMonitorPacket.__init__(self, address, packet) self.service_name = self.unpack_string( MDSAggregatorPacket.__MAX_SERVICE_NAME_LEN) ( self.lifetime_registration_count, self.current_registrant_count, self.resource_creation_time ) = self.unpack("qqq")
def __init__(self, address, packet): IPTimeMonitorPacket.__init__(self, address, packet) [self.number_of_files, self.number_of_resources] = self.unpack('qq')
def __init__(self, address, packet): IPTimeMonitorPacket.__init__(self, address, packet) [activity_len] = self.unpack("q") self.activity = self.unpack_string(activity_len)
def __init__(self, address, packet): IPTimeMonitorPacket.__init__(self, address, packet) [self.container_id, self.container_type, self.event_type] = \ self.unpack("ihh")