Package com.yahoo.container.di
Class ConfigRetriever
- java.lang.Object
-
- com.yahoo.container.di.ConfigRetriever
-
public final class ConfigRetriever extends java.lang.Object
- Author:
- Tony Vaagenes, gjoranv, ollivir
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigRetriever.BootstrapConfigs
static class
ConfigRetriever.ComponentsConfigs
static class
ConfigRetriever.ConfigSnapshot
-
Constructor Summary
Constructors Constructor Description ConfigRetriever(java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>> bootstrapKeys, java.util.function.Function<java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>>,Subscriber> subscribe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBootstrapGeneration()
long
getComponentsGeneration()
ConfigRetriever.ConfigSnapshot
getConfigs(java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>> componentConfigKeys, long leastGeneration)
ConfigRetriever.ConfigSnapshot
getConfigs(java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>> componentConfigKeys, long leastGeneration, boolean restartOnRedeploy)
Loop forever until we get configvoid
shutdown()
-
-
-
Constructor Detail
-
ConfigRetriever
public ConfigRetriever(java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>> bootstrapKeys, java.util.function.Function<java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>>,Subscriber> subscribe)
-
-
Method Detail
-
getConfigs
public ConfigRetriever.ConfigSnapshot getConfigs(java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>> componentConfigKeys, long leastGeneration, boolean restartOnRedeploy)
Loop forever until we get config
-
getConfigs
public ConfigRetriever.ConfigSnapshot getConfigs(java.util.Set<com.yahoo.vespa.config.ConfigKey<? extends com.yahoo.config.ConfigInstance>> componentConfigKeys, long leastGeneration)
-
shutdown
public void shutdown()
-
getBootstrapGeneration
public long getBootstrapGeneration()
-
getComponentsGeneration
public long getComponentsGeneration()
-
-