def _setup_rpc(self):
endpoints = RpcCallBacks(self)<EOL>self.server = rpc.DfaRpcServer(self.ser_q, self._host,<EOL>self.cfg.dfa_rpc.transport_url,<EOL>endpoints,<EOL>exchange=constants.DFA_EXCHANGE)<EOL>
Setup RPC server for dfa server.