org.lastbamboo.common.download
Interface MoverDState<DelegateStateT>

Type Parameters:
DelegateStateT - The state of the downloader delegate. This allows any delegate downloader to be plugged in.
All Superinterfaces:
DownloaderState
All Known Subinterfaces:
MoverDState.Downloading<T>, MoverDState.Failed<T>, MoverDState.Moved<T>, MoverDState.MovedToITunes<T>, MoverDState.MoveFailed<T>, MoverDState.Moving<T>
All Known Implementing Classes:
MoverDState.DownloadingImpl, MoverDState.FailedImpl, MoverDState.MovedImpl, MoverDState.MovedToITunesImpl, MoverDState.MoveFailedImpl, MoverDState.MovingImpl

public interface MoverDState<DelegateStateT>
extends DownloaderState

The state for a downloader that moves a file from a temporary location to a permanent one. This downloader delegates to a delegate downloader and moves the product of the delegate to a permanent location.


Nested Class Summary
static interface MoverDState.Downloading<T>
          A state that indicates that the delegate downloader is downloading.
static class MoverDState.DownloadingImpl<T>
          An implementation of the downloading state.
static interface MoverDState.Failed<T>
          A state that indicates that the delegate downloader has failed.
static class MoverDState.FailedImpl<T>
          An implementation of the failed state.
static interface MoverDState.Moved<T>
          A state that indicates that the temporary file has been moved.
static class MoverDState.MovedImpl<T>
          An implementation of the moved state.
static interface MoverDState.MovedToITunes<T>
          A state that indicates that the file has been added to iTunes.
static class MoverDState.MovedToITunesImpl<T>
          An implementation of the moved state.
static interface MoverDState.MoveFailed<T>
          A state that indicates that the attempt to move the temporary file failed.
static class MoverDState.MoveFailedImpl<T>
          An implementation of the move failed state.
static interface MoverDState.Moving<T>
          A state that indicates that the temporary file is in the process of being moved.
static class MoverDState.MovingImpl<T>
          An implementation of the moving state.
static interface MoverDState.Visitor<T,DelegateStateT>
          A visitor for a mover downloader state.
static class MoverDState.VisitorAdapter<T,DelegateStateT>
          An adaptor to help implement visitors.
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded
 
Method Summary
<T> T
accept(MoverDState.Visitor<T,DelegateStateT> visitor)
          Accepts a visitor to this state.
 
Methods inherited from interface org.lastbamboo.common.download.DownloaderState
getType
 

Method Detail

accept

<T> T accept(MoverDState.Visitor<T,DelegateStateT> 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.