/** * Opens a connection to the RecordServicePlanner. * Will retry maxAttempts_ if it got SERVICE_BUSY error. */ private void connect(String hostname, int port) throws IOException, RecordServiceException { connect(hostname, port, maxAttempts_); }
LOG.debug("Socket is closed, will reconnect to {}:{}", socket.getInetAddress().getHostAddress(), socket.getPort()); connect(socket.getInetAddress().getHostAddress(), socket.getPort(), 1);