org.eclipse.smila.connectivity.framework.util
Enum CrawlThreadState
java.lang.Object
java.lang.Enum<CrawlThreadState>
org.eclipse.smila.connectivity.framework.util.CrawlThreadState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CrawlThreadState>
public enum CrawlThreadState
- extends java.lang.Enum<CrawlThreadState>
A Enum defining the states a CrawlThread can be in.
Method Summary |
static CrawlThreadState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CrawlThreadState[] |
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 |
Running
public static final CrawlThreadState Running
- The different states. Running - the CrawlThread is actively running Stopped - the CrawlThread was stopped by user
interaction Finished - the CrawlThread completed it's crawl and finished without any fatal errors Aborted - the
CrawlThread aborted because of some fatal error
Stopped
public static final CrawlThreadState Stopped
Finished
public static final CrawlThreadState Finished
Aborted
public static final CrawlThreadState Aborted
values
public static CrawlThreadState[] 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 (CrawlThreadState c : CrawlThreadState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CrawlThreadState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null