diff options
author | Olli Virtanen <olli.virtanen@oath.com> | 2019-05-10 11:26:56 +0200 |
---|---|---|
committer | Olli Virtanen <olli.virtanen@oath.com> | 2019-05-10 11:30:44 +0200 |
commit | ae49b88f7aeda466036a71e824d07ec6176ce9da (patch) | |
tree | 1b617487dde750a608dc98541dc97957cc248c4e /vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/NullFeedMetric.java | |
parent | 6d8b6c68124440f65ff277db8507ec4ec3c1690b (diff) |
Collect metrics for parsing failures
Diffstat (limited to 'vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/NullFeedMetric.java')
-rw-r--r-- | vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/NullFeedMetric.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/NullFeedMetric.java b/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/NullFeedMetric.java deleted file mode 100644 index 4777c6c7b99..00000000000 --- a/vespaclient-container-plugin/src/test/java/com/yahoo/feedhandler/v3/NullFeedMetric.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.feedhandler.v3; - -import com.yahoo.jdisc.Metric; -import java.util.Map; - -/** - * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a> - * @since 5.1.20 - */ -public final class NullFeedMetric implements Metric { - - public NullFeedMetric(boolean flag) { - if (!flag) { - throw new IllegalArgumentException("must set flag allowing to throw away metrics"); - } - } - - @Override - public void set(String key, Number val, Context ctx) { - } - - @Override - public void add(String key, Number val, Context ctx) { - } - - @Override - public Context createContext(Map<String, ?> properties) { - return NullFeedContext.INSTANCE; - } - - private static class NullFeedContext implements Context { - private static final NullFeedContext INSTANCE = new NullFeedContext(); - } -} |