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