# Path: recovery/elliptics_recovery/utils/misc.py
# def logged_class(klass):
#     """
#     This decorator adds 'log' method to passed class
#     """
#     klass.log = log.getLogger(klass.__name__)
#     return klass


import os
import socket
        import Queue
from datetime import datetime
from threading import Thread
from multiprocessing import Manager
from .utils.misc import logged_class
from .stat import Stats
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
        from time import sleep
# =============================================================================
# 2013+ Copyright (c) Kirill Smorodinnikov <shaitkir@gmail.com>
# 2013+ Copyright (c) Alexey Ivanov <rbtz@ph34r.me>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# =============================================================================

"""
Wrapper for monitoring data and working with it in user code
"""





STAT_NONE = 'none'
STAT_TEXT = 'text'
STAT_JSON = 'json'
ALLOWED_STAT_FORMATS = (STAT_NONE, STAT_TEXT, STAT_JSON)



# Path: recovery/elliptics_recovery/utils/misc.py
# def logged_class(klass):
#     """
#     This decorator adds 'log' method to passed class
#     """
#     klass.log = log.getLogger(klass.__name__)
#     return klass


# Path: recovery/elliptics_recovery/monitor.py
import os
import socket
        import Queue
from datetime import datetime
from threading import Thread
from multiprocessing import Manager
from .utils.misc import logged_class
from .stat import Stats
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
        from time import sleep

# =============================================================================
# 2013+ Copyright (c) Kirill Smorodinnikov <shaitkir@gmail.com>
# 2013+ Copyright (c) Alexey Ivanov <rbtz@ph34r.me>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# =============================================================================

"""
Wrapper for monitoring data and working with it in user code
"""





STAT_NONE = 'none'
STAT_TEXT = 'text'
STAT_JSON = 'json'
ALLOWED_STAT_FORMATS = (STAT_NONE, STAT_TEXT, STAT_JSON)



@logged_class