org.lastbamboo.common.download
Interface MsDState

All Superinterfaces:
DownloaderState
All Known Subinterfaces:
MsDState.Canceled, MsDState.Complete, MsDState.CouldNotDetermineSources, MsDState.Downloading, MsDState.Failed, MsDState.GettingSources, MsDState.Idle, MsDState.LibTorrentDownloading, MsDState.LimeWireDownloading, MsDState.LittleShootDownloading, MsDState.NoSourcesAvailable, MsDState.Paused
All Known Implementing Classes:
MsDState.CanceledImpl, MsDState.CompleteImpl, MsDState.CouldNotDetermineSourcesImpl, MsDState.FailedImpl, MsDState.GettingSourcesImpl, MsDState.IdleImpl, MsDState.LibTorrentDownloadingState, MsDState.LimeWireDownloadingState, MsDState.LittleShootDownloadingState, MsDState.NoSourcesAvailableImpl, MsDState.PausedImpl

public interface MsDState
extends DownloaderState

The state for multi-source downloaders.


Nested Class Summary
static interface MsDState.Canceled
          A state that indicates that the downloader was canceled.
static class MsDState.CanceledImpl
          An implementation of the canceled state.
static interface MsDState.Complete
          A state that indicates that the downloader is done downloading.
static class MsDState.CompleteImpl
          An implementation of the complete state.
static interface MsDState.CouldNotDetermineSources
          A state that indicates that the downloader could not determine any sources for the content.
static class MsDState.CouldNotDetermineSourcesImpl
          An implementation of the could not determine sources state.
static interface MsDState.Downloading
          A state that indicates that the downloader is downloading.
static interface MsDState.Failed
          A state that indicates that the downloader failed.
static class MsDState.FailedImpl
          An implementation of the failed state.
static interface MsDState.GettingSources
          A state that indicates that the downloader is getting sources.
static class MsDState.GettingSourcesImpl
          An implementation of the getting sources state.
static interface MsDState.Idle
          A state that indicates that the downloader is idle.
static class MsDState.IdleImpl
          An implementation of the idle state.
static interface MsDState.LibTorrentDownloading
          A state for LibTorrent downloading.
static class MsDState.LibTorrentDownloadingState
          An implementation of the LibTorrent downloading state.
static interface MsDState.LimeWireDownloading
          A state for LimeWire downloading.
static class MsDState.LimeWireDownloadingState
          An implementation of the LimeWire downloading state.
static interface MsDState.LittleShootDownloading
          A state for LittleShoot downloading.
static class MsDState.LittleShootDownloadingState
          An implementation of the downloading state.
static interface MsDState.NoSourcesAvailable
          A state that indicates that the downloader could not find any available sources.
static class MsDState.NoSourcesAvailableImpl
          An implementation of the no sources available state.
static interface MsDState.Paused
          A state that indicates that the downloader is paused.
static class MsDState.PausedImpl
          An implementation of the paused state.
static interface MsDState.Visitor<T>
          A visitor for a downloader state.
static class MsDState.VisitorAdapter<T>
          An adaptor to help implement visitors.
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded
 
Field Summary
static MsDState CANCELED
          An instance of the canceled state.
static MsDState COMPLETE
          An instance of the complete state.
static MsDState COULD_NOT_DETERMINE_SOURCES
          An instance of the could not determine sources state.
static MsDState FAILED
          Failed state.
static MsDState GETTING_SOURCES
          An instance of the getting sources state.
static MsDState IDLE
          An instance of the idle state.
static MsDState NO_SOURCES_AVAILABLE
          An instance of the no sources available state.
 
Method Summary
<T> T
accept(MsDState.Visitor<T> visitor)
          Accepts a visitor to this state.
 
Methods inherited from interface org.lastbamboo.common.download.DownloaderState
getType
 

Field Detail

IDLE

static final MsDState IDLE
An instance of the idle state.


GETTING_SOURCES

static final MsDState GETTING_SOURCES
An instance of the getting sources state.


COMPLETE

static final MsDState COMPLETE
An instance of the complete state.


CANCELED

static final MsDState CANCELED
An instance of the canceled state.


NO_SOURCES_AVAILABLE

static final MsDState NO_SOURCES_AVAILABLE
An instance of the no sources available state.


COULD_NOT_DETERMINE_SOURCES

static final MsDState COULD_NOT_DETERMINE_SOURCES
An instance of the could not determine sources state.


FAILED

static final MsDState FAILED
Failed state.

Method Detail

accept

<T> T accept(MsDState.Visitor<T> visitor)
Accepts a visitor to this state.

Type Parameters:
T - The return type of the visitor.
Parameters:
visitor - The visitor.
Returns:
The result of the visitation.


Copyright © 2013 LittleShoot. All Rights Reserved.