Enum Class MCRProcessableStatus

java.lang.Object
java.lang.Enum<MCRProcessableStatus>
org.mycore.common.processing.MCRProcessableStatus
All Implemented Interfaces:
Serializable, Comparable<MCRProcessableStatus>, java.lang.constant.Constable

public enum MCRProcessableStatus extends Enum<MCRProcessableStatus>
The status of one MCRProcessable. Can be one of created, processing, canceled, failed or successful.
Author:
Matthias Eichner
  • Enum Constant Details

    • created

      public static final MCRProcessableStatus created
      The process is created and not started yet.
    • processing

      public static final MCRProcessableStatus processing
      The process is currently running.
    • canceled

      public static final MCRProcessableStatus canceled
      Canceled by the user and not by an error.
    • failed

      public static final MCRProcessableStatus failed
      An exception/error occurred while processing.
    • successful

      public static final MCRProcessableStatus successful
      The process is successfully done.
  • Method Details

    • values

      public static MCRProcessableStatus[] 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 MCRProcessableStatus 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