|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
DelegateStateT - The state of the downloader delegate. This allows
any delegate downloader to be plugged in.public interface MoverDState<DelegateStateT>
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 | ||
|---|---|---|
|
accept(MoverDState.Visitor<T,DelegateStateT> visitor)
Accepts a visitor to this state. |
|
| Methods inherited from interface org.lastbamboo.common.download.DownloaderState |
|---|
getType |
| Method Detail |
|---|
<T> T accept(MoverDState.Visitor<T,DelegateStateT> visitor)
T - The return type of the visitor.visitor - The visitor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||