summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/content/storagecluster/IntegrityCheckerProducer.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/content/storagecluster/IntegrityCheckerProducer.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/content/storagecluster/IntegrityCheckerProducer.java49
1 files changed, 0 insertions, 49 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/storagecluster/IntegrityCheckerProducer.java b/config-model/src/main/java/com/yahoo/vespa/model/content/storagecluster/IntegrityCheckerProducer.java
deleted file mode 100644
index 4f81bbf165f..00000000000
--- a/config-model/src/main/java/com/yahoo/vespa/model/content/storagecluster/IntegrityCheckerProducer.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.model.content.storagecluster;
-
-import com.yahoo.vespa.config.content.core.StorIntegritycheckerConfig;
-import com.yahoo.vespa.model.builder.xml.dom.ModelElement;
-import com.yahoo.vespa.model.content.cluster.ContentCluster;
-
-/**
- * Serves stor-integritychecker config for storage clusters.
- */
-public class IntegrityCheckerProducer implements StorIntegritycheckerConfig.Producer {
-
- public static class Builder {
- protected IntegrityCheckerProducer build(ContentCluster cluster, ModelElement clusterElem) {
- return integrityCheckerDisabled();
- }
- }
-
- private final Integer startTime;
- private final Integer stopTime;
- private final String weeklyCycle;
-
- IntegrityCheckerProducer(Integer startTime, Integer stopTime, String weeklyCycle) {
- this.startTime = startTime;
- this.stopTime = stopTime;
- this.weeklyCycle = weeklyCycle;
- }
-
- private static IntegrityCheckerProducer integrityCheckerDisabled() {
- // Leave start/start times at default, but mark each day of the week as
- // not allowing the integrity checker to be run.
- return new IntegrityCheckerProducer(null, null, "-------");
- }
-
- @Override
- public void getConfig(StorIntegritycheckerConfig.Builder builder) {
- if (startTime != null) {
- builder.dailycyclestart(startTime);
- }
-
- if (stopTime != null) {
- builder.dailycyclestop(stopTime);
- }
-
- if (weeklyCycle != null) {
- builder.weeklycycle(weeklyCycle);
- }
- }
-}