gedi.solutions.geode.operations.stats.RawStatSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gedi-geode-extensions-core Show documentation
Show all versions of gedi-geode-extensions-core Show documentation
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);
}
}