# Path: alvi/server.py
# API_URL_SCENE_REGISTER = 'api/scene/register'
# API_URL_SCENE_SYNC = 'api/scene/sync'
# def get_json_data(request):
#     def post(self, *args, **kwargs):
#     def on_connection_close(self):
#     def post(self, *args, **kwargs):
# def run(config_path=""):
# def register_scene(*args, **kwargs):
# class RegisterSceneHandler(tornado.web.RequestHandler):
# class SyncSceneHandler(tornado.web.RequestHandler):
# 
# Path: alvi/tests/resources/base.py
# class ResourceFactory(metaclass=abc.ABCMeta):
#     @staticmethod
#     @abc.abstractmethod
#     def create(*args, **kwargs):
#         raise NotImplementedError()
# 
# Path: alvi/tests/resources/base.py
# class Resource(metaclass=abc.ABCMeta):
#     @abc.abstractmethod
#     def destroy(self):
#         raise NotImplementedError()


import time
import logging
import multiprocessing
from alvi import server
from alvi.tests.resources.base import ResourceFactory
from alvi.tests.resources.base import Resource

logger = logging.getLogger(__name__)


class Backend(ResourceFactory):
    @staticmethod
    def create(config_path):
        return LocalBackend(config_path)



# Path: alvi/server.py
# API_URL_SCENE_REGISTER = 'api/scene/register'
# API_URL_SCENE_SYNC = 'api/scene/sync'
# def get_json_data(request):
#     def post(self, *args, **kwargs):
#     def on_connection_close(self):
#     def post(self, *args, **kwargs):
# def run(config_path=""):
# def register_scene(*args, **kwargs):
# class RegisterSceneHandler(tornado.web.RequestHandler):
# class SyncSceneHandler(tornado.web.RequestHandler):
# 
# Path: alvi/tests/resources/base.py
# class ResourceFactory(metaclass=abc.ABCMeta):
#     @staticmethod
#     @abc.abstractmethod
#     def create(*args, **kwargs):
#         raise NotImplementedError()
# 
# Path: alvi/tests/resources/base.py
# class Resource(metaclass=abc.ABCMeta):
#     @abc.abstractmethod
#     def destroy(self):
#         raise NotImplementedError()


# Path: alvi/tests/resources/backend.py
import time
import logging
import multiprocessing
from alvi import server
from alvi.tests.resources.base import ResourceFactory
from alvi.tests.resources.base import Resource


logger = logging.getLogger(__name__)


class Backend(ResourceFactory):
    @staticmethod
    def create(config_path):
        return LocalBackend(config_path)



class LocalBackend(Resource):