org.eclipse.ecf.protocol.bittorrent
Interface ITorrentStateListener


public interface ITorrentStateListener

A listener for monitoring what the associated torrent is currently doing.


Field Summary
static int EXCHANGING
          Used to indicate that the torrent is currently exchanging or waiting to exchange pieces with other peers.
static int FINISHED
          Used to indicate the torrent has been completed.
static int HASH_CHECKING
          Used to indicate that the torrent is currently performing a hash check for file integrity for all of its pieces.
static int STARTED
          Used to indicate that the torrent has finished the preprocessing setup and is about to start by communicating with the tracker.
static int STOPPED
          Used to indicate that the torrent is no longer connected.
 
Method Summary
 void stateChanged(int state)
          This method is called to indicate a change in the torrent's current status.
 

Field Detail

STARTED

static final int STARTED
Used to indicate that the torrent has finished the preprocessing setup and is about to start by communicating with the tracker.

See Also:
Constant Field Values

EXCHANGING

static final int EXCHANGING
Used to indicate that the torrent is currently exchanging or waiting to exchange pieces with other peers.

See Also:
Constant Field Values

STOPPED

static final int STOPPED
Used to indicate that the torrent is no longer connected.

See Also:
Torrent.stop(), Constant Field Values

FINISHED

static final int FINISHED
Used to indicate the torrent has been completed.

See Also:
Constant Field Values

HASH_CHECKING

static final int HASH_CHECKING
Used to indicate that the torrent is currently performing a hash check for file integrity for all of its pieces.

See Also:
Torrent.performHashCheck(), Constant Field Values
Method Detail

stateChanged

void stateChanged(int state)
This method is called to indicate a change in the torrent's current status.

Parameters:
state - the new state that the torrent is in
See Also:
STARTED, EXCHANGING, STOPPED, FINISHED, HASH_CHECKING