private void startSampler() {
    if (statsDisabled) {
      return;
    }
    sampler = loggingSession.getLogFile()
        .map(logFile -> new GemFireStatSampler(this, logFile))
        .orElseGet(() -> new GemFireStatSampler(this));
    sampler.start();
  }
Initializes this connection to a distributed system with the current configuration state.
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java