private ServerFacade createAndConfigureServer() {
LOG.debug("Configuring ..");
- ServerFacade server;
checkState(connConfig != null, "Connection not configured");
// TODO : Add option to disable Epoll.
boolean isEpollEnabled = Epoll.isAvailable();
+ final ServerFacade server;
if (TransportProtocol.TCP.equals(transportProtocol) || TransportProtocol.TLS.equals(transportProtocol)) {
server = new TcpHandler(connConfig.getAddress(), connConfig.getPort(),
() -> diagReg.report(new ServiceDescriptor(diagStatusIdentifier, ServiceState.OPERATIONAL)));