Package com.yahoo.vespa.model.search
Class IndexingCluster
java.lang.Object
com.yahoo.vespa.model.search.IndexingCluster
Utility class to track configuration for which indexing docproc to use by a content cluster.
- Author:
- tegge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClusterName(String searchClusterName) Returns the name of the docproc cluster running indexing for this content cluster.booleanbooleanvoidsetChain(DocprocChain chain) Sets the docproc chain that will be running indexing for this search cluster.voidsetChainName(String name) voidsetClusterName(String name) Sets the name of the docproc cluster running indexing for this search cluster.
-
Constructor Details
-
IndexingCluster
public IndexingCluster()
-
-
Method Details
-
hasExplicitCluster
public boolean hasExplicitCluster() -
hasExplicitChain
public boolean hasExplicitChain() -
getClusterName
Returns the name of the docproc cluster running indexing for this content cluster. This is derived from the services file on initialization, this can NOT be used at runtime to determine indexing chain. When initialization is done, thegetServiceName()method holds the actual indexing docproc chain object.- Returns:
- the name of the docproc cluster associated with this
-
getChainName
-
setChainName
-
setClusterName
Sets the name of the docproc cluster running indexing for this search cluster. This is for initial configuration, and will not reflect the actual indexing chain. SeegetClusterName(java.lang.String)for more detail.- Parameters:
name- the name of the docproc cluster associated with this
-
getServiceName
-
setChain
Sets the docproc chain that will be running indexing for this search cluster. This is set by theContentmodel during build.- Parameters:
chain- the chain that is to run indexing for this cluster
-