summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/ConfigHack.java
diff options
context:
space:
mode:
authorHÃ¥kon Hallingstad <hakon@oath.com>2018-12-01 00:47:29 +0100
committerGitHub <noreply@github.com>2018-12-01 00:47:29 +0100
commit8e4eeb40e46f7b2fde27ac82bf14f27be4de6ecb (patch)
treeb7237df951072a75d3d527b757f11e6b08214c3d /container-core/src/main/java/com/yahoo/container/ConfigHack.java
parentc0513ac34d2c438e9f97e699659855029e1f06e8 (diff)
Revert "Remove zombie code"
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/ConfigHack.java')
-rw-r--r--container-core/src/main/java/com/yahoo/container/ConfigHack.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/ConfigHack.java b/container-core/src/main/java/com/yahoo/container/ConfigHack.java
new file mode 100644
index 00000000000..55cf208e163
--- /dev/null
+++ b/container-core/src/main/java/com/yahoo/container/ConfigHack.java
@@ -0,0 +1,31 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.container;
+
+import com.yahoo.container.config.StatisticsEmitter;
+
+/**
+ * Distribution point for QRS specific stuff in a more or less
+ * container agnostic way. This is only a stepping stone to moving these things
+ * to Container and other pertinent classes, or simply removing the problems.
+ *
+ * <p>
+ * This class should not reach a final release.
+ *
+ * @author Steinar Knutsen
+ */
+public final class ConfigHack {
+
+ private volatile StatisticsEmitter statisticsEmitter = new StatisticsEmitter();
+ public static final String TILED_TEMPLATE = "tiled";
+
+ public static final ConfigHack instance = new ConfigHack();
+
+ public StatisticsEmitter getStatisticsHandler() {
+ return statisticsEmitter;
+ }
+
+ public void setStatisticsEmitter(StatisticsEmitter statisticsEmitter) {
+ this.statisticsEmitter = statisticsEmitter;
+ }
+
+}