Enum Class TorrentStatus.State
- All Implemented Interfaces:
Serializable,Comparable<TorrentStatus.State>,Constable
- Enclosing class:
TorrentStatus
the different overall states a torrent can be in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe torrent has not started its download yet, and is currently checking existing files.The torrent is currently checking the fastresume data and comparing it to the files on disk.The torrent is being downloaded.The torrent is trying to download metadata from peers.In this state the torrent has finished downloading but still doesn't have the entire torrent.In this state the torrent has finished downloading and is a pure seeder. -
Method Summary
Modifier and TypeMethodDescriptionstatic TorrentStatus.StatefromSwig(int swigValue) intswig()static TorrentStatus.StateReturns the enum constant of this class with the specified name.static TorrentStatus.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHECKING_FILES
The torrent has not started its download yet, and is currently checking existing files. -
DOWNLOADING_METADATA
The torrent is trying to download metadata from peers. This assumes the metadata_transfer extension is in use. -
DOWNLOADING
The torrent is being downloaded. This is the state most torrents will be in most of the time. The progress meter will tell how much of the files that has been downloaded. -
FINISHED
In this state the torrent has finished downloading but still doesn't have the entire torrent. i.e. some pieces are filtered and won't get downloaded. -
SEEDING
In this state the torrent has finished downloading and is a pure seeder. -
CHECKING_RESUME_DATA
The torrent is currently checking the fastresume data and comparing it to the files on disk. This is typically completed in a fraction of a second, but if you add a large number of torrents at once, they will queue up. -
UNKNOWN
-
-
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
-
swig
public int swig()- Returns:
- the native value
-
fromSwig
- Parameters:
swigValue-- Returns:
-