Пример #1
0
    def __init__(self, address, packet):
        JavaWSCoreV1Packet.__init__(self, address, packet)
        [
            self.version_major, self.version_minor, self.version_micro,
            self.uptime, self.port_number, self.thread_pool_size,
            self.thread_count, self.threads_high_watermark, self.threads_max,
            self.service_requests_count
        ] = self.unpack("hhhiihhhhi")

        if self.event_type == JavaWSCoreV3Packet.__START_EVENT:
            self.jvm_info = self.unpack_string(self.__JVM_INFO_LEN)
        else:
            self.jvm_info = None

        [service_len] = self.unpack("h")
        self.services = self.unpack_string(service_len)
Пример #2
0
    def __init__(self, address, packet):
        JavaWSCoreV1Packet.__init__(self, address, packet)
        [
            self.version_major,
            self.version_minor,
            self.version_micro,
            self.uptime,
            self.port_number,
            self.thread_pool_size,
            self.thread_count,
            self.threads_high_watermark,
            self.threads_max,
            self.service_requests_count
        ] = self.unpack("hhhiihhhhi")

        if self.event_type == JavaWSCoreV3Packet.__START_EVENT:
            self.jvm_info = self.unpack_string(self.__JVM_INFO_LEN)
        else:
            self.jvm_info = None

        [service_len] = self.unpack("h")
        self.services = self.unpack_string(service_len)
Пример #3
0
 def __init__(self, address, packet):
     JavaWSCoreV1Packet.__init__(self, address, packet)
     [self.optional_int, service_len] = self.unpack("ih")
     self.services = self.unpack_string(service_len)
Пример #4
0
 def __init__(self, address, packet):
     JavaWSCoreV1Packet.__init__(self, address, packet)
     [self.optional_int, service_len] = self.unpack("ih")
     self.services = self.unpack_string(service_len)