/** * Causes the calling Thread to block until the GemFire Cache Server/Data Member stops. */ public void waitOnServer() { assert getCache() != null : "The Cache Server must first be started with a call to start!"; if (!isServing(getCache())) { Throwable cause = null; try { while (isWaiting(getCache())) { try { synchronized (this) { wait(500L); } } catch (InterruptedException handled) { // loop back around } } } catch (RuntimeException e) { cause = e; throw e; } finally { failOnStart(cause); } } }
failOnStart(e); throw new AuthenticationRequiredException( "user/password required. Please start your server with --user and --password. " + e.getMessage()); } catch (GemFireSecurityException e) { failOnStart(e); throw new GemFireSecurityException(e.getMessage()); } catch (IOException e) { failOnStart(e); throw new RuntimeException( String.format("An IO error occurred while starting a %s in %s on %s: %s", e); } catch (FileAlreadyExistsException e) { failOnStart(e); throw new RuntimeException( String.format("A PID file already exists and a %s may be running in %s on %s.", e); } catch (PidUnavailableException e) { failOnStart(e); throw new RuntimeException( String.format("The process ID could not be determined while starting %s %s in %s: %s", e); } catch (RuntimeException | Error e) { failOnStart(e); throw e; } catch (Exception e) {