Package com.yahoo.search.federation
Class ProviderConfig
- java.lang.Object
-
- com.yahoo.config.Node
-
- com.yahoo.config.InnerNode
-
- com.yahoo.config.ConfigInstance
-
- com.yahoo.search.federation.ProviderConfig
-
public final class ProviderConfig extends com.yahoo.config.ConfigInstance
This class represents the root node of provider 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
ProviderConfig.Builder
static class
ProviderConfig.Node
This class represents provider.node[]static class
ProviderConfig.PingOption
This class represents provider.pingOption How to do pinging against a backend.static interface
ProviderConfig.Producer
static class
ProviderConfig.QueryType
This class represents provider.queryType The form of the serialized query.static class
ProviderConfig.Yca
This class represents provider.yca
-
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 ProviderConfig(ProviderConfig.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
connectionPoolTimeout()
double
connectionTimeout()
boolean
followRedirects()
static java.lang.String
getDefMd5()
static java.lang.String
getDefName()
static java.lang.String
getDefNamespace()
static java.lang.String
getDefVersion()
int
maxConnectionPerRoute()
int
maxConnections()
java.util.List<ProviderConfig.Node>
node()
ProviderConfig.Node
node(int i)
java.lang.String
path()
ProviderConfig.PingOption.Enum
pingOption()
ProviderConfig.QueryType.Enum
queryType()
double
readTimeout()
int
retries()
int
socketBufferBytes()
ProviderConfig.Yca
yca()
-
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
-
ProviderConfig
public ProviderConfig(ProviderConfig.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()
-
node
public java.util.List<ProviderConfig.Node> node()
- Returns:
- provider.node[]
-
node
public ProviderConfig.Node node(int i)
- Parameters:
i
- the index of the value to return- Returns:
- provider.node[]
-
path
public java.lang.String path()
- Returns:
- provider.path
-
maxConnections
public int maxConnections()
- Returns:
- provider.maxConnections
-
maxConnectionPerRoute
public int maxConnectionPerRoute()
- Returns:
- provider.maxConnectionPerRoute
-
socketBufferBytes
public int socketBufferBytes()
- Returns:
- provider.socketBufferBytes
-
retries
public int retries()
- Returns:
- provider.retries
-
readTimeout
public double readTimeout()
- Returns:
- provider.readTimeout
-
connectionTimeout
public double connectionTimeout()
- Returns:
- provider.connectionTimeout
-
connectionPoolTimeout
public double connectionPoolTimeout()
- Returns:
- provider.connectionPoolTimeout
-
yca
public ProviderConfig.Yca yca()
- Returns:
- provider.yca
-
queryType
public ProviderConfig.QueryType.Enum queryType()
- Returns:
- provider.queryType
-
pingOption
public ProviderConfig.PingOption.Enum pingOption()
- Returns:
- provider.pingOption
-
followRedirects
public boolean followRedirects()
- Returns:
- provider.followRedirects
-
-