Enum Class DownloadStage

java.lang.Object
java.lang.Enum<DownloadStage>
google.registry.bsa.DownloadStage
All Implemented Interfaces:
Serializable, Comparable<DownloadStage>, Constable

public enum DownloadStage extends Enum<DownloadStage>
The processing stages of a download.
  • Enum Constant Details

    • DOWNLOAD_BLOCK_LISTS

      public static final DownloadStage DOWNLOAD_BLOCK_LISTS
      Downloads BSA block list files.
    • MAKE_ORDER_AND_LABEL_DIFF

      public static final DownloadStage MAKE_ORDER_AND_LABEL_DIFF
      Generates block list diffs against the previous download. The diffs consist of a stream of orders and a stream of labels.
    • APPLY_ORDER_AND_LABEL_DIFF

      public static final DownloadStage APPLY_ORDER_AND_LABEL_DIFF
      Applies the diffs to the database.
    • REPORT_START_OF_ORDER_PROCESSING

      public static final DownloadStage REPORT_START_OF_ORDER_PROCESSING
      Makes a REST API call to BSA endpoint, declaring that processing starts for new orders in the diffs.
    • UPLOAD_UNBLOCKABLE_DOMAINS_FOR_NEW_ORDERS

      public static final DownloadStage UPLOAD_UNBLOCKABLE_DOMAINS_FOR_NEW_ORDERS
      Makes a REST API call to BSA endpoint, uploading unblockable domains that match labels in the diff.
    • REPORT_END_OF_ORDER_PROCESSING

      public static final DownloadStage REPORT_END_OF_ORDER_PROCESSING
      Makes a REST API call to BSA endpoint, declaring the completion of order processing.
    • DONE

      public static final DownloadStage DONE
      The terminal stage after processing succeeds.
    • NOP

      public static final DownloadStage NOP
      The terminal stage indicating that the downloads are discarded because their checksums are the same as that of the previous download.
    • CHECKSUMS_DO_NOT_MATCH

      public static final DownloadStage CHECKSUMS_DO_NOT_MATCH
      The terminal stage indicating that the downloads are not processed because their BSA-generated checksums do not match those calculated by us.
  • Method Details

    • values

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