@Override public void connect() { final String label = getNodeName(); ErlLogger.debug(label + ": waiting connection to peer..."); try { wait_for_epmd(); eventBox = createMbox("rex"); if (waitForCodeServer()) { ErlLogger.debug("connected!"); } else { ErlLogger.error(COULD_NOT_CONNECT_TO_BACKEND); } } catch (final BackendException e) { ErlLogger.error(e); ErlLogger.error(COULD_NOT_CONNECT_TO_BACKEND); } catch (final Exception e) { ErlLogger.error(e); ErlLogger.error(COULD_NOT_CONNECT_TO_BACKEND); } }
private void wait_for_epmd() throws BackendException { wait_for_epmd("localhost"); }