|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<StopReason>
dk.netarkivet.harvester.datamodel.StopReason
public enum StopReason
Class for containing a reason for stopping the harvesting of a domain. There are five possible reasons: 1) We have now harvested the whole domain (DOWNLOAD_COMPLETE) 2) We have now harvested the number of objects allowed from this domain in this iteration (OBJECT_LIMIT) 3) We have now harvested the the number of bytes allowed from this domain in this iteration (SIZE_LIMIT) 4) We stopped harvesting because we hit the per-configuration limit (CONFIG_SIZE_LIMIT) 5) We don't know whether or not the harvesting is completed, because the crawler did not finish in an orderly way (DOWNLOAD_UNFINISHED) Note: This enum is serialized to database using the order in which these are defined. Thus the order of stop reasons MUST NOT BE CHANGED!
Enum Constant Summary | |
---|---|
CONFIG_SIZE_LIMIT
We stopped harvesting because we hit the per-configuration limit. |
|
DOWNLOAD_COMPLETE
We have now harvested the whole domain. |
|
DOWNLOAD_UNFINISHED
We don't know whether or not the harvesting is completed, because the crawler did not finish in an orderly way. |
|
OBJECT_LIMIT
We have now harvested the number of objects allowed from this domain in this harvest. |
|
SIZE_LIMIT
We have now harvested the the number of bytes allowed from this domain in this harvest. |
Method Summary | |
---|---|
java.lang.String |
getLocalizedString(java.util.Locale l)
Return a localized string describing a stopreason. |
(package private) static StopReason |
getStopReason(int stopreasonNum)
Get the StopReason corresponding to the given positive integer. |
static StopReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static StopReason[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final StopReason DOWNLOAD_COMPLETE
public static final StopReason OBJECT_LIMIT
public static final StopReason SIZE_LIMIT
public static final StopReason CONFIG_SIZE_LIMIT
public static final StopReason DOWNLOAD_UNFINISHED
Method Detail |
---|
public static final StopReason[] values()
for(StopReason c : StopReason.values()) System.out.println(c);
public static StopReason 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 namestatic StopReason getStopReason(int stopreasonNum)
stopreasonNum
- a given positive integer
public java.lang.String getLocalizedString(java.util.Locale l)
l
- the locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |