Example #1
0
 def __init__(self, *args):
     TServer.__init__(self, *args)
     self.numWorkers = 10
     self.workers = []
     self.isRunning = Value('b', False)
     self.stopCondition = Condition()
     self.postForkCallback = None
Example #2
0
 def __init__(self, *args, **kwargs):
   TServer.__init__(self, *args)
   self.clients = Queue.Queue()
   self.threads = 10
   self.serverThreads = []
   self.daemon = kwargs.get("daemon", False)
   self.isRunning = False
Example #3
0
 def __init__(self, *args, **kwargs):
     TServer.__init__(self, *args)
     self.clients = Queue.Queue()
     self.threads = 10
     self.serverThreads = []
     self.daemon = kwargs.get("daemon", False)
     self.isRunning = False
 def __init__(self, * args):
     TServer.__init__(self, *args)
     self.numWorkers = 10
     self.workers = []
     self.isRunning = Value('b', False)
     self.stopCondition = Condition()
     self.postForkCallback = None
 def __init__(self, handler, listModelConfig, *args, logger=None, timeout=0.1, batchSize=1):
     TServer.__init__(self, *args)
     self.timeout = timeout
     self.batchSize = batchSize
     if logger is not None:
         self.logger = logger
     else:
         self.logger = logging.getLogger(__name__)
     self.listModelConfig = listModelConfig
     self.handler = handler
     self.workers = []
     self.isRunning = Value('b', False)
     self.stopCondition = Condition()
     self.postForkCallback = None
Example #6
0
 def __init__(self, *args, **kwargs):
     TServer.__init__(self, *args)
     self.threads = 10
     self._stop_flag = False
     self.clients = Queue.Queue()
     self._thread_pool = []
 def __init__(self, port, *args):
     TServer.__init__(self, *args)
     self.port = port
     self.numWorkers = multiprocessing.cpu_count()
     self.workers = []
     self.postForkCallback = None
Example #8
0
 def __init__(self, *args):
     TServer.__init__(self, *args)
     self.coroutines = 500
Example #9
0
 def __init__(self, *args):
     TServer.__init__(self, *args)
     self._stop_flag = False
Example #10
0
 def __init__(self, name, *args):
     TServer.__init__(self, *args)
     self.name = name
Example #11
0
 def __init__(self, greenlets, *args):
     TServer.__init__(self, *args)
     self.clients = queue.Queue()
     self.pool = Pool(size=greenlets)
     self.max_greenlets = greenlets
 def __init__(self, logger, *args):
     TServer.__init__(self, *args)
     self._logger = logger
 def __init__(self, *args):
     TServer.__init__(self, *args)
     self.workers = []
     self.isRunning = Value('b', False)
     self.postForkCallback = None
     self._post_start_callback = None
 def __init__(self, name, *args):
     TServer.__init__(self, *args)
     self.name = name
Example #15
0
 def __init__(self, *args, **kwargs):
     TServer.__init__(self, *args)
 def __init__(self, *args):
     TServer.__init__(self, *args)
     self.workers = []
     self.isRunning = Value('b', False)
     self.postForkCallback = None
     self._post_start_callback = None
Example #17
0
 def setServerEventHandler(self, handler):
     TServer.setServerEventHandler(self, handler)
     handler.CONTEXT_DATA = CppContextData
     handler.CPP_CONNECTION_CONTEXT = TCppConnectionContext
     self.setCppServerEventHandler(handler)
Example #18
0
 def __init__(self, *args):
     TServer.__init__(self, *args)
     self.children = []