|
|
@ -615,6 +615,8 @@ class RouteMonitor(object):
|
|
|
|
|
|
|
|
|
|
|
|
class Router(mitogen.core.Router):
|
|
|
|
class Router(mitogen.core.Router):
|
|
|
|
context_class = Context
|
|
|
|
context_class = Context
|
|
|
|
|
|
|
|
debug = False
|
|
|
|
|
|
|
|
profiling = False
|
|
|
|
|
|
|
|
|
|
|
|
id_allocator = None
|
|
|
|
id_allocator = None
|
|
|
|
responder = None
|
|
|
|
responder = None
|
|
|
@ -710,6 +712,21 @@ class Router(mitogen.core.Router):
|
|
|
|
self._context_by_id[context.context_id] = context
|
|
|
|
self._context_by_id[context.context_id] = context
|
|
|
|
return context
|
|
|
|
return context
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def docker(self, **kwargs):
|
|
|
|
|
|
|
|
return self.connect('docker', **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def local(self, **kwargs):
|
|
|
|
|
|
|
|
return self.connect('local', **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def fork(self, **kwargs):
|
|
|
|
|
|
|
|
return self.connect('fork', **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def sudo(self, **kwargs):
|
|
|
|
|
|
|
|
return self.connect('sudo', **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def ssh(self, **kwargs):
|
|
|
|
|
|
|
|
return self.connect('ssh', **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ProcessMonitor(object):
|
|
|
|
class ProcessMonitor(object):
|
|
|
|
def __init__(self):
|
|
|
|
def __init__(self):
|
|
|
|