Class DocprocExecutor


  • @Deprecated(forRemoval=true,
                since="7")
    public class DocprocExecutor
    extends Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Will be removed in Vespa 8. Only for internal use.
    An executor executed incoming processings on its CallStack
    Author:
    Einar M R Rosenvinge
    • Constructor Detail

      • DocprocExecutor

        public DocprocExecutor​(String name,
                               CallStack callStack)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new named DocprocExecutor with the given CallStack.
        Parameters:
        name - the name of this executor
        callStack - the chain of document processors this executor shall execute on processings
      • DocprocExecutor

        public DocprocExecutor​(DocprocExecutor oldExecutor,
                               CallStack callStack)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new named DocprocExecutor, with the same instance variables as the given executor, but a new call stack.
        Parameters:
        oldExecutor - the executor to inherit the instance variables from, sans call stack.
        callStack - the call stack to use.
    • Method Detail

      • getCallStack

        public CallStack getCallStack()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getName

        public String getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • process

        public DocumentProcessor.Progress process​(Processing processing)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Processes a given Processing through the CallStack of this executor.
        Parameters:
        processing - the Processing to process. The CallStack of the Processing will be set to a clone of the CallStack of this executor, iff. it is currently null.
        Returns:
        a Progress; if this is LATER, the Processing is not done and must be reprocessed later.
        Throws:
        RuntimeException - if a document processor throws an exception during processing.
        See Also:
        Processing
      • processUntilDone

        public DocumentProcessor.Progress processUntilDone​(Processing processing)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Processes a given Processing through the CallStack of this executor. Note that if a DocumentProcessor returns a LaterProgress for this processing, it will be re-processed (after waiting the specified delay given by the LaterProgress), until done or failed.
        Parameters:
        processing - the Processing to process. The CallStack of the Processing will be set to a clone of the CallStack of this executor, iff. it is currently null.
        Returns:
        a Progress; this is never a LaterProgress.
        Throws:
        RuntimeException - if a document processor throws an exception during processing, or this thread is interrupted while waiting.
        See Also:
        Processing, DocumentProcessor.Progress, DocumentProcessor.LaterProgress