Package google.registry.bsa
Enum Class DownloadStage
- All Implemented Interfaces:
Serializable
,Comparable<DownloadStage>
,Constable
The processing stages of a download.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApplies the diffs to the database.The terminal stage indicating that the downloads are not processed because their BSA-generated checksums do not match those calculated by us.The terminal stage after processing succeeds.Downloads BSA block list files.Generates block list diffs against the previous download.The terminal stage indicating that the downloads are discarded because their checksums are the same as that of the previous download.Makes a REST API call to BSA endpoint, declaring the completion of order processing.Makes a REST API call to BSA endpoint, declaring that processing starts for new orders in the diffs.Makes a REST API call to BSA endpoint, uploading unblockable domains that match labels in the diff. -
Method Summary
Modifier and TypeMethodDescriptionstatic DownloadStage
Returns the enum constant of this class with the specified name.static DownloadStage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWNLOAD_BLOCK_LISTS
Downloads BSA block list files. -
MAKE_ORDER_AND_LABEL_DIFF
-
APPLY_ORDER_AND_LABEL_DIFF
Applies the diffs to the database. -
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
Makes a REST API call to BSA endpoint, uploading unblockable domains that match labels in the diff. -
REPORT_END_OF_ORDER_PROCESSING
Makes a REST API call to BSA endpoint, declaring the completion of order processing. -
DONE
The terminal stage after processing succeeds. -
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
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
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
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 nameNullPointerException
- if the argument is null
-