All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gedi.solutions.geode.operations.stats.RawStatSpec Maven / Gradle / Ivy

Go to download

GemFire Enterprise Data Integration - common development extensions powered by Apache Geode

The newest version!
package gedi.solutions.geode.operations.stats;

import java.io.File;

/**
   * Wraps an instance of StatSpec but alwasy returns a combine type of NONE.
   */
  class RawStatSpec implements StatSpec {
    private final StatSpec spec;

    RawStatSpec(StatSpec wrappedSpec) {
      this.spec = wrappedSpec;
    }

    public int getCombineType() {
      return StatSpec.NONE;
    }

    public boolean typeMatches(String typeName) {
      return spec.typeMatches(typeName);
    }

    public boolean statMatches(String statName) {
      return spec.statMatches(statName);
    }

    public boolean instanceMatches(String textId, long numericId) {
      return spec.instanceMatches(textId, numericId);
    }

    public boolean archiveMatches(File archive) {
      return spec.archiveMatches(archive);
    }
  }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy