Commit 1e63683f authored by Antoine Millet's avatar Antoine Millet
Browse files

Created an handler for host clients

parent f2253db9
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
from cloudcontrol.server.clients import Client
from cloudcontrol.server.clients import Client, RegisteredCCHandler


class HostHandler(RegisteredCCHandler):

    """ Handler binded to an host client.
    """


class HostClient(Client):

@@ -6,6 +13,7 @@ class HostClient(Client):
    """

    ROLE = 'host'
    RPC_HANDLER = HostHandler

    def __init__(self, *args, **kwargs):
        super(HostClient, self).__init__(*args, **kwargs)
+2 −2
Original line number Diff line number Diff line
import threading

from cloudcontrol.server.handlers import listed
from cloudcontrol.server.clients import Client, RegisteredCCHandler
from cloudcontrol.server.clients import Client
from cloudcontrol.server.clients.host import HostClient
from cloudcontrol.server.db import RemoteTag

@@ -11,7 +11,7 @@ from cloudcontrol.common.tql.db.tag import StaticTag
from functools import partial


class HypervisorHandler(RegisteredCCHandler):
class HypervisorHandler(HostClient.RPC_HANDLER):
    """ Handler binded to an hv client.
    """