Enum ChecksumStatus
- java.lang.Object
-
- java.lang.Enum<ChecksumStatus>
-
- dk.netarkivet.archive.arcrepositoryadmin.ChecksumStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ChecksumStatus>
public enum ChecksumStatus extends java.lang.Enum<ChecksumStatus>
The status of the checksum for the bitpreservation database.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CORRUPT
The status is 'CORRUPT' if the checksum of the replicafileinfo entry does not match the checksum of the majority of the other replicafileinfo entries for the same file but for the other replicas.OK
The status is 'OK' if the checksum of the replicafileinfo entry is identical to the checksum of the other replicafileinfo entries for same file but for the other replicas.UNKNOWN
The status is 'UNKNOWN' before a update has taken place.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChecksumStatus
fromOrdinal(int status)
Method to retrieve the FileListStatus based on an integer.static ChecksumStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ChecksumStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ChecksumStatus UNKNOWN
The status is 'UNKNOWN' before a update has taken place.
-
CORRUPT
public static final ChecksumStatus CORRUPT
The status is 'CORRUPT' if the checksum of the replicafileinfo entry does not match the checksum of the majority of the other replicafileinfo entries for the same file but for the other replicas.
-
OK
public static final ChecksumStatus OK
The status is 'OK' if the checksum of the replicafileinfo entry is identical to the checksum of the other replicafileinfo entries for same file but for the other replicas.
-
-
Method Detail
-
values
public static ChecksumStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChecksumStatus c : ChecksumStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChecksumStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromOrdinal
public static ChecksumStatus fromOrdinal(int status) throws ArgumentNotValid
Method to retrieve the FileListStatus based on an integer.- Parameters:
status
- A certain integer for the upload status- Returns:
- The UploadStatus related to the certain integer
- Throws:
ArgumentNotValid
- If argument rt does not correspond to a UploadStatus.
-
-