void matchSpec(StatSpec spec, List matchedValues) {
      if (spec.typeMatches(type.getName())) {
        if (spec.instanceMatches(getName(), getId())) {
          for (final SimpleValue value : values) {
            if (value != null) {
              if (spec.statMatches(value.getDescriptor().getName())) {
                matchedValues.add(value);
              }
            }
          }
        }
      }
    }
Returns the number of times this resource instance has been sampled.
geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveReader.java