Package com.crawljax.core
Enum ExitNotifier.ExitStatus
- java.lang.Object
-
- java.lang.Enum<ExitNotifier.ExitStatus>
-
- com.crawljax.core.ExitNotifier.ExitStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ExitNotifier.ExitStatus>
- Enclosing class:
- ExitNotifier
public static enum ExitNotifier.ExitStatus extends Enum<ExitNotifier.ExitStatus>
Represents the reason Crawljax stopped.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThe crawler quite because of an error.EXHAUSTEDThe crawl is done.MAX_STATESThe maximum number of states is reached as defined inCrawljaxConfiguration.getMaximumStates().MAX_TIMEThe maximum crawl time is reached as defined inCrawljaxConfiguration.getMaximumRuntime().STOPPEDWhenCrawljaxRunner.stop()has been called.
-
Field Summary
Fields Modifier and Type Field Description private StringreadableName
-
Constructor Summary
Constructors Modifier Constructor Description privateExitStatus(String readableName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static ExitNotifier.ExitStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ExitNotifier.ExitStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX_STATES
public static final ExitNotifier.ExitStatus MAX_STATES
The maximum number of states is reached as defined inCrawljaxConfiguration.getMaximumStates().
-
MAX_TIME
public static final ExitNotifier.ExitStatus MAX_TIME
The maximum crawl time is reached as defined inCrawljaxConfiguration.getMaximumRuntime().
-
EXHAUSTED
public static final ExitNotifier.ExitStatus EXHAUSTED
The crawl is done.
-
ERROR
public static final ExitNotifier.ExitStatus ERROR
The crawler quite because of an error.
-
STOPPED
public static final ExitNotifier.ExitStatus STOPPED
WhenCrawljaxRunner.stop()has been called.
-
-
Field Detail
-
readableName
private final String readableName
-
-
Constructor Detail
-
ExitStatus
private ExitStatus(String readableName)
-
-
Method Detail
-
values
public static ExitNotifier.ExitStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExitNotifier.ExitStatus c : ExitNotifier.ExitStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExitNotifier.ExitStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<ExitNotifier.ExitStatus>
-
-