@SuppressWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD",
      justification = "There is never more than one SampleCollector instance.")
  public void initialize(final StatArchiveHandlerConfig config, final long nanosTimeStamp,
      final RollingFileHandler rollingFileHandler) {
    synchronized (SampleCollector.class) {
      instance = this;
      synchronized (sampleHandlers) {
        StatArchiveHandler newStatArchiveHandler =
            new StatArchiveHandler(config, this, rollingFileHandler);
        statArchiveHandler = newStatArchiveHandler;
        addSampleHandler(newStatArchiveHandler);
        newStatArchiveHandler.initialize(nanosTimeStamp);
      }
    }
  }
Initializes this collector by creating a {@link StatArchiveHandler} and registering it as a
handler.

@param config defines the configuration for the StatArchiveHandler
@param nanosTimeStamp the nanos time stamp to initialize stat archiver with
@param rollingFileHandler provides file rolling behavior
geode-core/src/main/java/org/apache/geode/internal/statistics/SampleCollector.java