public enum StopReason extends Enum<StopReason>
Note: This enum is serialized to the database using the order in which these are defined. Thus the order of stop reasons MUST NOT BE CHANGED!
Enum Constant and Description |
---|
CONFIG_OBJECT_LIMIT
Stop reason is configuration object limit reached, when the domain reached the maximum number of objects allowed
by the configuration.
|
CONFIG_SIZE_LIMIT
Stop reason is configuration size limit reached, when the domain reached the maximum number of bytes allowed by
the configuration.
|
DOWNLOAD_COMPLETE
Stop reason is download complete, when all pages within the scope of the harvest template have been downloaded.
|
DOWNLOAD_UNFINISHED
Stop reason is download unfinished, when we don't know whether or not the harvesting is completed, because the
crawler did not finish in an orderly way.
|
OBJECT_LIMIT
Stop reason is object limit reached, when the domain reached the maximum number of objects allowed by the
harvest.
|
SIZE_LIMIT
Stop reason is size limit reached, when the domain reached the maximum number of bytes allowed by the harvest.
|
TIME_LIMIT
Stop reason is harvesting time limit reached, when the harvester is not finished with harvesting the domain when
the harvester reaches its time-limit.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedString(Locale l)
Return a localized string describing a stopreason.
|
static StopReason |
valueOf(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 are declared.
|
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
public static final StopReason CONFIG_OBJECT_LIMIT
public static final StopReason TIME_LIMIT
public static StopReason[] values()
for (StopReason c : StopReason.values()) System.out.println(c);
public static StopReason 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 String getLocalizedString(Locale l)
l
- the localeCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.