import tornado.web

class LivenessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/up endpoint """
    def initialize(self):
        pass

    def get(self):
        self.set_status(200)

    def on_finish(self):
        pass

class ReadinessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/ready endpoint """
    def initialize(self,ref_object):
        self.obj = ref_object

    def get(self):
        res = self.obj.ping()
        if res == 0:
            self.set_status(200)
        else:
            self.set_status(503)

    def on_finish(self):
        self.obj = None
23d09b76470b9a011dc2b194871bcbc4868921e6
<mask token>


class ReadinessProbeHandler(tornado.web.RequestHandler):
    <mask token>

    def initialize(self, ref_object):
        self.obj = ref_object

    def get(self):
        res = self.obj.ping()
        if res == 0:
            self.set_status(200)
        else:
            self.set_status(503)

    def on_finish(self):
        self.obj = None

<mask token>


class LivenessProbeHandler(tornado.web.RequestHandler):
    <mask token>
    <mask token>
    <mask token>

    def on_finish(self):
        pass


class ReadinessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/ready endpoint """

    def initialize(self, ref_object):
        self.obj = ref_object

    def get(self):
        res = self.obj.ping()
        if res == 0:
            self.set_status(200)
        else:
            self.set_status(503)

    def on_finish(self):
        self.obj = None

<mask token>


class LivenessProbeHandler(tornado.web.RequestHandler):
    <mask token>
    <mask token>

    def get(self):
        self.set_status(200)

    def on_finish(self):
        pass


class ReadinessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/ready endpoint """

    def initialize(self, ref_object):
        self.obj = ref_object

    def get(self):
        res = self.obj.ping()
        if res == 0:
            self.set_status(200)
        else:
            self.set_status(503)

    def on_finish(self):
        self.obj = None

<mask token>


class LivenessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/up endpoint """

    def initialize(self):
        pass

    def get(self):
        self.set_status(200)

    def on_finish(self):
        pass


class ReadinessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/ready endpoint """

    def initialize(self, ref_object):
        self.obj = ref_object

    def get(self):
        res = self.obj.ping()
        if res == 0:
            self.set_status(200)
        else:
            self.set_status(503)

    def on_finish(self):
        self.obj = None

import tornado.web

class LivenessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/up endpoint """
    def initialize(self):
        pass

    def get(self):
        self.set_status(200)

    def on_finish(self):
        pass

class ReadinessProbeHandler(tornado.web.RequestHandler):
    """ Tornado Handler for /healthz/ready endpoint """
    def initialize(self,ref_object):
        self.obj = ref_object

    def get(self):
        res = self.obj.ping()
        if res == 0:
            self.set_status(200)
        else:
            self.set_status(503)

    def on_finish(self):
        self.obj = None