@Override
  public boolean waitForSample(long timeout) throws InterruptedException {
    final long endTime = System.currentTimeMillis() + timeout;
    final int startSampleCount = samplerStats.getSampleCount();
    while (System.currentTimeMillis() < endTime
        && samplerStats.getSampleCount() <= startSampleCount) {
      Thread.sleep(WAIT_FOR_SLEEP_INTERVAL);
    }
    return samplerStats.getSampleCount() > startSampleCount;
  }
Returns the path to this sampler's system directory; if it has one.
geode-core/src/main/java/org/apache/geode/internal/statistics/HostStatSampler.java