def __init__(self): self._storage = None super(Service, self).__init__( self.service_name, cfg.CONF['service:mdns'].topic, threads=cfg.CONF['service:mdns'].threads, ) self.override_endpoints( [notify.NotifyEndpoint(self.tg), xfr.XfrEndpoint(self.tg)]) self.dns_service = service.DNSService( self.dns_application, self.tg, cfg.CONF['service:mdns'].listen, cfg.CONF['service:mdns'].tcp_backlog, cfg.CONF['service:mdns'].tcp_recv_timeout, )
def _rpc_endpoints(self): return [notify.NotifyEndpoint(self.tg), xfr.XfrEndpoint(self.tg)]