public void setServices(Services<ID> services) {
    this.services = services;
    stats = services.getStatistics();
  }
sets the services object of the GMS that is using this recorder

@param services the Services collective of the GMS
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/messenger/StatRecorder.java