Beispiel #1
0
    def _get_db(self, db_type, node_name=""):

        req_msg = decision_types.DecisionRequest()
        req_msg.cmd = db_type
        req_msg.nodeName = node_name

        return self.send_and_recv_thrift_obj(req_msg,
                                             decision_types.DecisionReply)
Beispiel #2
0
    def _get_db(self, db_type, node_name=""):

        req_msg = decision_types.DecisionRequest()
        req_msg.cmd = db_type
        req_msg.nodeName = node_name

        self._decision_cmd_socket.send_thrift_obj(req_msg)
        return self._decision_cmd_socket.recv_thrift_obj(decision_types.DecisionReply)