Package com.yahoo.vespa.model.search
Class IndexingDocproc
java.lang.Object
com.yahoo.vespa.model.search.IndexingDocproc
Utility class to track configuration for which indexing docproc to use by a search cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetClusterName
(String searchClusterName) Returns the name of the docproc cluster running indexing for this search cluster.boolean
boolean
void
setChain
(DocprocChain chain) Sets the docproc chain that will be running indexing for this search cluster.void
setChainName
(String name) void
setClusterName
(String name) Sets the name of the docproc cluster running indexing for this search cluster.
-
Constructor Details
-
IndexingDocproc
public IndexingDocproc()
-
-
Method Details
-
hasExplicitCluster
public boolean hasExplicitCluster() -
hasExplicitChain
public boolean hasExplicitChain() -
getClusterName
Returns the name of the docproc cluster running indexing for this search 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 theContent
model during build.- Parameters:
chain
- the chain that is to run indexing for this cluster
-