Package com.yahoo.vespa.model.content
Class ContentSearchCluster
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
com.yahoo.vespa.model.content.ContentSearchCluster
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer,com.yahoo.vespa.config.search.core.ProtonConfig.Producer,ConfigProducer,Redundancy.Provider,Serializable
public class ContentSearchCluster
extends TreeConfigProducer<AnyConfigProducer>
implements com.yahoo.vespa.config.search.core.ProtonConfig.Producer, Redundancy.Provider
Encapsulates the various options for search in a content model.
Wraps a search cluster from com.yahoo.vespa.model.search.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchNode(DeployState deployState, ContentNode node, StorageGroup parentGroup, ModelElement element) voidgetConfig(com.yahoo.vespa.config.search.core.ProtonConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.search.DispatchConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.search.DispatchNodesConfig.Builder builder) voidhandleRedundancy(Redundancy redundancy) booleanbooleanbooleanReturns whether the schemas in this cluster use streaming mode.voidsetResourceLimits(ResourceLimits resourceLimits) voidvoidsetVisibilityDelay(double delay) toString()booleanMethods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validateMethods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHostedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Method Details
-
setVisibilityDelay
public void setVisibilityDelay(double delay) -
isStreaming
Returns whether the schemas in this cluster use streaming mode.- Returns:
- True if this cluster only has schemas with streaming mode, False if it only has schemas with indexing, null if it has both or none.
-
hasStreaming
public boolean hasStreaming() -
hasIndexed
public boolean hasIndexed() -
getSearchNodes
-
addSearchNode
public void addSearchNode(DeployState deployState, ContentNode node, StorageGroup parentGroup, ModelElement element) -
setTuning
-
setResourceLimits
-
usesHierarchicDistribution
public boolean usesHierarchicDistribution() -
handleRedundancy
-
getDocumentTypesWithStreamingCluster
-
getDocumentTypesWithIndexedCluster
-
getDocumentTypesWithStoreOnly
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.core.ProtonConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.search.core.ProtonConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.search.DispatchNodesConfig.Builder builder) -
getConfig
public void getConfig(com.yahoo.vespa.config.search.DispatchConfig.Builder builder) -
getSearchCluster
-
hasSearchCluster
public boolean hasSearchCluster() -
getIndexingDocproc
-
getClusterName
-
toString
-
redundancy
- Specified by:
redundancyin interfaceRedundancy.Provider
-