def METHOD_NAME(cls):
    s = socket.socket()
    try:
        s.connect((cls._client.get_host(), cls._client.get_port()))
        s.close()
        if cls.config.check_jvm:
            return cls.is_jvm_up()
        else:
            return True
    except socket.error as e:
        print(e)
        return False