mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 08:21:32 +00:00
Specify EventHandler types in builtin handlers
This commit is contained in:
parent
25cf672231
commit
9712ebf102
@ -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
|
||||
|
@ -5,6 +5,7 @@ from threading import Thread
|
||||
|
||||
class MessageQueueHandler:
|
||||
keys = ['message.queue']
|
||||
type_id = 'ControlEventHandler'
|
||||
|
||||
def __init__(self, wpm):
|
||||
self.connector = None
|
||||
|
@ -10,6 +10,7 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
class FSMHandler:
|
||||
keys = ['fsm']
|
||||
type_id = 'ControlEventHandler'
|
||||
|
||||
def __init__(self, *, fsm_type):
|
||||
self.connector = None
|
||||
|
@ -34,6 +34,7 @@ BUILD_ARTIFACTS = (
|
||||
|
||||
class IdeHandler:
|
||||
keys = ['ide']
|
||||
type_id = 'ControlEventHandler'
|
||||
|
||||
def __init__(self, *, patterns, initial_file=''):
|
||||
self.connector = None
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user