def getStatus(self): resp = Thespian_SystemStatus(self.myAddress, capabilities = self.capabilities, inShutdown = self.isShuttingDown()) resp.setDeadLetterHandler(self._deadLetterHandler) self._updateStatusResponse(resp) resp.setLoadedSources(list(self._sources.keys())) resp.sourceAuthority = self._sourceAuthority return resp
def h_Thespian_StatusReq(self, envelope): self._sCBStats.inc("Admin Message Received.Type.StatusReq") resp = Thespian_SystemStatus(self.myAddress, capabilities=self.capabilities, inShutdown=self.isShuttingDown()) resp.setDeadLetterHandler(self._deadLetterHandler) self._updateStatusResponse(resp) resp.setLoadedSources(list(self._sources.keys())) resp.sourceAuthority = self._sourceAuthority self._send_intent(TransmitIntent(envelope.sender, resp)) return True
def getStatus(self): resp = Thespian_SystemStatus(self.myAddress, capabilities=self.capabilities, inShutdown=self.isShuttingDown()) resp.setDeadLetterHandler(self._deadLetterHandler) self._updateStatusResponse(resp) resp.setLoadedSources(self._sources) resp.sourceAuthority = self._sourceAuthority return resp
def h_Thespian_StatusReq(self, envelope): self._sCBStats.inc('Admin Message Received.Type.StatusReq') resp = Thespian_SystemStatus(self.myAddress, capabilities=self.capabilities, inShutdown=self.isShuttingDown()) resp.setDeadLetterHandler(self._deadLetterHandler) self._updateStatusResponse(resp) resp.setLoadedSources(list(self._sources.keys())) resp.sourceAuthority = self._sourceAuthority self._send_intent(TransmitIntent(envelope.sender, resp)) return True