Package com.yahoo.docproc.jdisc
Class DocumentProcessingHandlerParameters
java.lang.Object
com.yahoo.docproc.jdisc.DocumentProcessingHandlerParameters
Class to hold parameters given to DocumentProcessingHandler, typically used by unit tests.
- Author:
- Einar M R Rosenvinge
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.component.chain.model.ChainsModelReturns the chains model, used to build call stacks.com.yahoo.container.core.document.ContainerDocumentConfigcom.yahoo.document.DocumentTypeManagerintReturns the maximum number of thread that the thread pool will ever attempt to run simultaneously.com.yahoo.jdisc.MetricReturns the schema map to be used by the docproc handler.setChainsModel(com.yahoo.component.chain.model.ChainsModel chainsModel) setContainerDocumentConfig(com.yahoo.container.core.document.ContainerDocumentConfig containerDocConfig) setDocumentTypeManager(com.yahoo.document.DocumentTypeManager documentTypeManager) setMaxNumThreads(int maxNumThreads) setMetric(com.yahoo.jdisc.Metric metric) setSchemaMap(SchemaMap schemaMap)
-
Constructor Details
-
DocumentProcessingHandlerParameters
public DocumentProcessingHandlerParameters()
-
-
Method Details
-
getMetric
public com.yahoo.jdisc.Metric getMetric() -
setMetric
-
getMaxNumThreads
public int getMaxNumThreads()Returns the maximum number of thread that the thread pool will ever attempt to run simultaneously.- Returns:
- the maximum number of thread that the thread pool will ever attempt to run simultaneously.
-
setMaxNumThreads
-
getDocumentTypeManager
public com.yahoo.document.DocumentTypeManager getDocumentTypeManager() -
setDocumentTypeManager
public DocumentProcessingHandlerParameters setDocumentTypeManager(com.yahoo.document.DocumentTypeManager documentTypeManager) -
getChainsModel
public com.yahoo.component.chain.model.ChainsModel getChainsModel()Returns the chains model, used to build call stacks.- Returns:
- the chains model, used to build call stacks.
-
setChainsModel
public DocumentProcessingHandlerParameters setChainsModel(com.yahoo.component.chain.model.ChainsModel chainsModel) -
getSchemaMap
Returns the schema map to be used by the docproc handler.- Returns:
- the schema map to be used by the docproc handler.
-
setSchemaMap
-
setContainerDocumentConfig
public DocumentProcessingHandlerParameters setContainerDocumentConfig(com.yahoo.container.core.document.ContainerDocumentConfig containerDocConfig) -
getContainerDocConfig
public com.yahoo.container.core.document.ContainerDocumentConfig getContainerDocConfig()
-