Package com.yahoo.search.config
Class ClusterConfig
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.InnerNode
-
- com.yahoo.config.ConfigInstance
-
- com.yahoo.search.config.ClusterConfig
-
public final class ClusterConfig extends com.yahoo.config.ConfigInstance
This class represents the root node of cluster Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterConfig.Builder
static interface
ClusterConfig.Producer
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_DEF_MD5
static java.lang.String
CONFIG_DEF_NAME
static java.lang.String
CONFIG_DEF_NAMESPACE
static java.lang.String[]
CONFIG_DEF_SCHEMA
static java.lang.String
CONFIG_DEF_VERSION
-
Constructor Summary
Constructors Constructor Description ClusterConfig(ClusterConfig.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
cacheSize()
double
cacheTimeout()
int
clusterId()
java.lang.String
clusterName()
boolean
failoverToRemote()
static java.lang.String
getDefMd5()
static java.lang.String
getDefName()
static java.lang.String
getDefNamespace()
static java.lang.String
getDefVersion()
double
maxQueryCacheTimeout()
double
maxQueryTimeout()
-
Methods inherited from class com.yahoo.config.ConfigInstance
getConfigMd5, getDefName, getDefNamespace, serialize, serialize, setConfigMd5
-
-
-
-
Field Detail
-
CONFIG_DEF_MD5
public static final java.lang.String CONFIG_DEF_MD5
- See Also:
- Constant Field Values
-
CONFIG_DEF_NAME
public static final java.lang.String CONFIG_DEF_NAME
- See Also:
- Constant Field Values
-
CONFIG_DEF_NAMESPACE
public static final java.lang.String CONFIG_DEF_NAMESPACE
- See Also:
- Constant Field Values
-
CONFIG_DEF_VERSION
public static final java.lang.String CONFIG_DEF_VERSION
- See Also:
- Constant Field Values
-
CONFIG_DEF_SCHEMA
public static final java.lang.String[] CONFIG_DEF_SCHEMA
-
-
Constructor Detail
-
ClusterConfig
public ClusterConfig(ClusterConfig.Builder builder)
-
-
Method Detail
-
getDefMd5
public static java.lang.String getDefMd5()
-
getDefName
public static java.lang.String getDefName()
-
getDefNamespace
public static java.lang.String getDefNamespace()
-
getDefVersion
public static java.lang.String getDefVersion()
-
clusterId
public int clusterId()
- Returns:
- cluster.clusterId
-
cacheSize
public int cacheSize()
- Returns:
- cluster.cacheSize
-
cacheTimeout
public double cacheTimeout()
- Returns:
- cluster.cacheTimeout
-
failoverToRemote
public boolean failoverToRemote()
- Returns:
- cluster.failoverToRemote
-
clusterName
public java.lang.String clusterName()
- Returns:
- cluster.clusterName
-
maxQueryTimeout
public double maxQueryTimeout()
- Returns:
- cluster.maxQueryTimeout
-
maxQueryCacheTimeout
public double maxQueryCacheTimeout()
- Returns:
- cluster.maxQueryCacheTimeout
-
-