|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ReplicaType> dk.netarkivet.common.distribute.arcrepository.ReplicaType
public enum ReplicaType
Enumeration of the possible replica types used for replicas.
Enum Constant Summary | |
---|---|
BITARCHIVE
bitarchive replica which contain files stored in repository. |
|
CHECKSUM
Checksum replica which contains checksums of files in repository. |
|
NO_REPLICA_TYPE
If no replica type has been set. |
Field Summary | |
---|---|
static java.lang.String |
BITARCHIVE_REPLICATYPE_AS_STRING
String representation of the ReplicaType.BITARCHIVE. |
static java.lang.String |
CHECKSUM_REPLICATYPE_AS_STRING
String representation of the ReplicaType.CHECKSUM. |
Method Summary | |
---|---|
static ReplicaType |
fromOrdinal(int rt)
Helper method that gives a proper object from e.g. |
static ReplicaType |
fromSetting(java.lang.String s)
Helper method that gives a proper object from e.g. |
static ReplicaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ReplicaType[] |
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 ReplicaType NO_REPLICA_TYPE
public static final ReplicaType BITARCHIVE
public static final ReplicaType CHECKSUM
Field Detail |
---|
public static final java.lang.String BITARCHIVE_REPLICATYPE_AS_STRING
public static final java.lang.String CHECKSUM_REPLICATYPE_AS_STRING
Method Detail |
---|
public static ReplicaType[] values()
for (ReplicaType c : ReplicaType.values()) System.out.println(c);
public static ReplicaType 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 ReplicaType fromOrdinal(int rt)
rt
- a certain integer for a replica type
ArgumentNotValid
- If argument rt does not correspond
to a ReplicaTypepublic static ReplicaType fromSetting(java.lang.String s)
s
- A string representing a ReplicaType.
ArgumentNotValid
- If argument s is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |