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:
  • Constructor Details

    • DocumentProcessingHandlerParameters

      public DocumentProcessingHandlerParameters()
  • Method Details

    • 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()