|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ReplicaStoreState> dk.netarkivet.common.distribute.arcrepository.ReplicaStoreState
public enum ReplicaStoreState
This class encapsulates the different upload states, while storing a file in the archive of a replica . Used by the classes ArcRepository, AdminData, and ArcRepositoryEntry. TODO Needs localisation.
ArcRepository
,
AdminData
,
ArcRepositoryEntry
Enum Constant Summary | |
---|---|
DATA_UPLOADED
Data has been successfully uploaded to a replica archive. |
|
UNKNOWN_UPLOAD_STATE
If it is unknown whether a file has been successfully uploaded to a replica or not. |
|
UPLOAD_COMPLETED
Upload to replica archive completed, which means that it has been verified by a checksumJob. |
|
UPLOAD_FAILED
Upload to the replica archive has failed. |
|
UPLOAD_STARTED
Upload to a replica archive has started. |
Method Summary | |
---|---|
static ReplicaStoreState |
fromOrdinal(int i)
|
static ReplicaStoreState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ReplicaStoreState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ReplicaStoreState UPLOAD_STARTED
public static final ReplicaStoreState DATA_UPLOADED
public static final ReplicaStoreState UPLOAD_COMPLETED
public static final ReplicaStoreState UPLOAD_FAILED
public static final ReplicaStoreState UNKNOWN_UPLOAD_STATE
Method Detail |
---|
public static ReplicaStoreState[] values()
for (ReplicaStoreState c : ReplicaStoreState.values()) System.out.println(c);
public static ReplicaStoreState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static ReplicaStoreState fromOrdinal(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |