public long getStatId() {
      if (stats.isClosed()) {
        return -1;
      } else {
        return stats.getUniqueId();
      }
    }
Returns the <code>ProcessStats</code> for this Java VM. Note that <code>null</code> will be
returned if operating statistics are disabled.

@since GemFire 3.5
geode-core/src/main/java/org/apache/geode/internal/statistics/GemFireStatSampler.java