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 ignore) {
        }
      }
    }
 catch (    RuntimeException e) {
      cause=e;
      throw e;
    }
 finally {
      failOnStart(cause);
    }
  }
}

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 ignore ) { } } } catch ( RuntimeException e ) { cause = e ; throw e ; } finally { failOnStart ( cause ) ; } } }
causes the calling thread to block until the gemfire cache server / data member stops .
