public enum ChecksumStatus extends Enum<ChecksumStatus>
Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
static ChecksumStatus |
fromOrdinal(int status)
Method to retrieve the FileListStatus based on an integer.
|
static ChecksumStatus |
valueOf(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.
|
public static final ChecksumStatus UNKNOWN
public static final ChecksumStatus CORRUPT
public static final ChecksumStatus OK
public static ChecksumStatus[] values()
for (ChecksumStatus c : ChecksumStatus.values()) System.out.println(c);
public static ChecksumStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ChecksumStatus fromOrdinal(int status) throws ArgumentNotValid
status
- A certain integer for the upload statusArgumentNotValid
- If argument rt does not correspond to a UploadStatus.Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.