From 9712ebf1021f1b29f30fa51444dd01720f78d318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 30 Aug 2019 14:45:53 +0200 Subject: [PATCH] Specify EventHandler types in builtin handlers --- tfw/components/frontend/frontend_proxy_handler.py | 1 + .../frontend/message_queue_handler/message_queue_handler.py | 1 + tfw/components/fsm/fsm_handler.py | 1 + tfw/components/ide/ide_handler.py | 1 + tfw/components/process_management/process_handler.py | 1 + tfw/components/process_management/process_log_handler.py | 1 + tfw/components/terminal/terminal_handler.py | 1 + 7 files changed, 7 insertions(+) diff --git a/tfw/components/frontend/frontend_proxy_handler.py b/tfw/components/frontend/frontend_proxy_handler.py index 6a364d2..d48d8c9 100644 --- a/tfw/components/frontend/frontend_proxy_handler.py +++ b/tfw/components/frontend/frontend_proxy_handler.py @@ -5,6 +5,7 @@ from .message_storage import FrontendMessageStorage class FrontendProxyHandler: keys = ['console', 'dashboard', 'frontend', 'message', 'ide.read', 'deploy.finish'] + type_id = 'ControlEventHandler' def __init__(self): self.connector = None diff --git a/tfw/components/frontend/message_queue_handler/message_queue_handler.py b/tfw/components/frontend/message_queue_handler/message_queue_handler.py index b60dc6a..97f344b 100644 --- a/tfw/components/frontend/message_queue_handler/message_queue_handler.py +++ b/tfw/components/frontend/message_queue_handler/message_queue_handler.py @@ -5,6 +5,7 @@ from threading import Thread class MessageQueueHandler: keys = ['message.queue'] + type_id = 'ControlEventHandler' def __init__(self, wpm): self.connector = None diff --git a/tfw/components/fsm/fsm_handler.py b/tfw/components/fsm/fsm_handler.py index 8f19a3a..2d31594 100644 --- a/tfw/components/fsm/fsm_handler.py +++ b/tfw/components/fsm/fsm_handler.py @@ -10,6 +10,7 @@ LOG = logging.getLogger(__name__) class FSMHandler: keys = ['fsm'] + type_id = 'ControlEventHandler' def __init__(self, *, fsm_type): self.connector = None diff --git a/tfw/components/ide/ide_handler.py b/tfw/components/ide/ide_handler.py index bf1307b..e75ea84 100644 --- a/tfw/components/ide/ide_handler.py +++ b/tfw/components/ide/ide_handler.py @@ -34,6 +34,7 @@ BUILD_ARTIFACTS = ( class IdeHandler: keys = ['ide'] + type_id = 'ControlEventHandler' def __init__(self, *, patterns, initial_file=''): self.connector = None diff --git a/tfw/components/process_management/process_handler.py b/tfw/components/process_management/process_handler.py index 04c121b..c56a02b 100644 --- a/tfw/components/process_management/process_handler.py +++ b/tfw/components/process_management/process_handler.py @@ -10,6 +10,7 @@ LOG = logging.getLogger(__name__) class ProcessHandler(ProcessManager): keys = ['process'] + type_id = 'ControlEventHandler' def __init__(self, *, supervisor_uri): ProcessManager.__init__(self, supervisor_uri) diff --git a/tfw/components/process_management/process_log_handler.py b/tfw/components/process_management/process_log_handler.py index 9e3bb42..a61f806 100644 --- a/tfw/components/process_management/process_log_handler.py +++ b/tfw/components/process_management/process_log_handler.py @@ -7,6 +7,7 @@ LOG = logging.getLogger(__name__) class ProcessLogHandler: keys = ['process.log'] + type_id = 'ControlEventHandler' def __init__(self, *, process_name, supervisor_uri, log_tail=0): self.connector, self._monitor = None, None diff --git a/tfw/components/terminal/terminal_handler.py b/tfw/components/terminal/terminal_handler.py index dd17e97..8044fae 100644 --- a/tfw/components/terminal/terminal_handler.py +++ b/tfw/components/terminal/terminal_handler.py @@ -8,6 +8,7 @@ LOG = logging.getLogger(__name__) class TerminalHandler: keys = ['terminal'] + type_id = 'ControlEventHandler' def __init__(self, *, port, user, working_directory, histfile): self.connector, self._historymonitor = None, None