Enum Class PipesResult.CATEGORY

java.lang.Object
java.lang.Enum<PipesResult.CATEGORY>
org.apache.tika.pipes.api.PipesResult.CATEGORY
All Implemented Interfaces:
Serializable, Comparable<PipesResult.CATEGORY>, Constable
Enclosing class:
PipesResult

public static enum PipesResult.CATEGORY extends Enum<PipesResult.CATEGORY>
High-level categorization of result statuses.

Categories help distinguish between different types of failures and successes, allowing infrastructure to decide how to handle each case:

  • FATAL - System cannot continue, must be fixed and restarted
  • INITIALIZATION_FAILURE - Component failed to initialize, might be transient
  • TASK_EXCEPTION - This task failed, but other tasks may succeed
  • PROCESS_CRASH - Forked process crashed, auto-restart and continue
  • SUCCESS - Processing completed successfully (possibly with warnings)
  • Enum Constant Details

    • FATAL

      public static final PipesResult.CATEGORY FATAL
      Fatal system error - cannot continue, must be fixed and restarted
    • INITIALIZATION_FAILURE

      public static final PipesResult.CATEGORY INITIALIZATION_FAILURE
      Component initialization failed - processing should stop, might be transient
    • TASK_EXCEPTION

      public static final PipesResult.CATEGORY TASK_EXCEPTION
      Task-level exception - this task failed, log and continue with next task
    • PROCESS_CRASH

      public static final PipesResult.CATEGORY PROCESS_CRASH
      Forked process crashed due to OOM, timeout, or other system failure - auto-restart
    • SUCCESS

      public static final PipesResult.CATEGORY SUCCESS
      Processing completed successfully (possibly with warnings)
  • Method Details

    • values

      public static PipesResult.CATEGORY[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PipesResult.CATEGORY valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null