def __init__(self, command_port=60053, heartbeat=3, **kwargs): # initialize configurable attributes self.heartbeat = heartbeat self.command_port = command_port # execute the event core configuration ComponentCore.__init__(self, **kwargs) # configure the interrupt handlers and run state signal.signal(signal.SIGILL, self._signal_interrupt_handler) self._stopped = True # list of functions to call after config, but before event loop starts self._startup_hooks = list() # list of functions to call when after event loop is drained self._shutdown_hooks = list() # zmq context used to create sockets self._zmq_ctx = None # zmq poller used to retrieve messages self._poller = None # the service controller self._controller = None # input configs are of type input_socket_config.ListenerConfig self._connection_manager = ConnectionManager(self) self._active_input_sockets = None
def __init__(self, rotate=3, size=10, **kwargs): """ :param rotate: :type rotate: int :param size: :type size: int """ self.rotate = rotate self.size = size self.world = None ComponentCore.__init__(self, **kwargs)