- All Implemented Interfaces:
Serializable, Comparable<I2PSnarkServlet.StatusKind>, java.lang.constant.Constable
- Enclosing class:
I2PSnarkServlet
The mutually exclusive states a torrent row can display, in the evaluation order of
I2PSnarkServlet.classifyStatus(boolean, boolean, boolean, boolean, boolean, boolean, int, int, boolean, boolean). Package-visible so the classifier can be unit-tested without a servlet.Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllocating disk space for the torrent.Checking or rechecking existing data.Complete and stopped.Incomplete, connected, downloading.Running with peers known but none connected.Running with no peers known at all.Complete, running, uploading to connected peers.Complete, running, connected but not uploading.Complete and running, but with no known peers.Incomplete, connected, no transfer in either direction.Incomplete and connected, but neither downloading nor uploading.Start requested, tunnels not yet built.Fallback: stopped and incomplete.No tracker response for over an hour while otherwise idle.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic I2PSnarkServlet.StatusKindReturns the enum constant of this class with the specified name.static I2PSnarkServlet.StatusKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
CHECKING
Checking or rechecking existing data.ALLOCATING
Allocating disk space for the torrent.TRACKER_ERROR
No tracker response for over an hour while otherwise idle.STARTING
Start requested, tunnels not yet built.SEEDING_ACTIVE
Complete, running, uploading to connected peers.SEEDING_CONNECTED_IDLE
Complete, running, connected but not uploading.STALLED_CONNECTED_IDLE
Incomplete, connected, no transfer in either direction.SEEDING_IDLE
Complete and running, but with no known peers.COMPLETE_STOPPED
Complete and stopped.DOWNLOADING
Incomplete, connected, downloading.STALLED_INCOMPLETE_CONNECTED
Incomplete and connected, but neither downloading nor uploading.NOPEERS_CONNECTED
Running with peers known but none connected.NOPEERS_UNKNOWN
Running with no peers known at all.STOPPED_DEFAULT
Fallback: stopped and incomplete.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null