Package com.biglybt.core.download
Class StreamManager.SMDImpl
- java.lang.Object
-
- com.biglybt.core.util.AERunnable
-
- com.biglybt.core.download.StreamManager.SMDImpl
-
- All Implemented Interfaces:
StreamManagerDownload
,java.lang.Runnable
- Enclosing class:
- StreamManager
private class StreamManager.SMDImpl extends AERunnable implements StreamManagerDownload
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.core.util.AERunnable
AERunnable.AERunnableNamed
-
-
Field Summary
Fields Modifier and Type Field Description (package private) EnhancedDownloadManager
active_edm
private boolean
active_edm_activated
private TranscodeJob
active_job
private AESemaphore
active_sem
(package private) boolean
cancelled
(package private) DownloadManager
dm
private int
existing_dl_limit
(package private) int
file_index
(package private) StreamManagerDownloadListener
listener
(package private) boolean
preview_mode
private long
preview_mode_last_change
(package private) java.net.URL
url
-
Constructor Summary
Constructors Constructor Description SMDImpl(DownloadManager _dm, int _file_index, java.net.URL _url, boolean _preview_mode, StreamManagerDownloadListener _listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
private PluginInterface
checkPlugin(java.lang.String id, java.lang.String name)
DownloadManager
getDownload()
int
getFileIndex()
boolean
getPreviewMode()
java.net.URL
getURL()
boolean
isCancelled()
void
runSupport()
void
setPreviewMode(boolean _preview_mode)
(package private) long[]
updateETA(EnhancedDownloadManager edm)
-
Methods inherited from class com.biglybt.core.util.AERunnable
create, run
-
-
-
-
Field Detail
-
dm
DownloadManager dm
-
file_index
int file_index
-
url
java.net.URL url
-
listener
StreamManagerDownloadListener listener
-
existing_dl_limit
private int existing_dl_limit
-
preview_mode
boolean preview_mode
-
preview_mode_last_change
private long preview_mode_last_change
-
active_sem
private AESemaphore active_sem
-
active_job
private TranscodeJob active_job
-
active_edm
EnhancedDownloadManager active_edm
-
active_edm_activated
private boolean active_edm_activated
-
cancelled
volatile boolean cancelled
-
-
Constructor Detail
-
SMDImpl
SMDImpl(DownloadManager _dm, int _file_index, java.net.URL _url, boolean _preview_mode, StreamManagerDownloadListener _listener)
-
-
Method Detail
-
getDownload
public DownloadManager getDownload()
- Specified by:
getDownload
in interfaceStreamManagerDownload
-
getFileIndex
public int getFileIndex()
- Specified by:
getFileIndex
in interfaceStreamManagerDownload
-
getURL
public java.net.URL getURL()
- Specified by:
getURL
in interfaceStreamManagerDownload
-
getPreviewMode
public boolean getPreviewMode()
- Specified by:
getPreviewMode
in interfaceStreamManagerDownload
-
setPreviewMode
public void setPreviewMode(boolean _preview_mode)
- Specified by:
setPreviewMode
in interfaceStreamManagerDownload
-
runSupport
public void runSupport()
- Specified by:
runSupport
in classAERunnable
-
updateETA
long[] updateETA(EnhancedDownloadManager edm)
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceStreamManagerDownload
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceStreamManagerDownload
-
checkPlugin
private PluginInterface checkPlugin(java.lang.String id, java.lang.String name) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-