Class ExternalSeedReaderGetRight
java.lang.Object
com.biglybt.plugin.extseed.impl.ExternalSeedReaderImpl
com.biglybt.plugin.extseed.impl.getright.ExternalSeedReaderGetRight
- All Implemented Interfaces:
PiecePriorityProvider
,PeerManagerListener2
,ExternalSeedReader
public class ExternalSeedReaderGetRight
extends ExternalSeedReaderImpl
implements PiecePriorityProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.plugin.extseed.impl.ExternalSeedReaderImpl
ExternalSeedReaderImpl.MutableInteger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long[]
private long[]
private ExternalSeedHTTPDownloader[]
private boolean
private int
private long[]
private int
private int
private static final int
private URL
Fields inherited from class com.biglybt.plugin.extseed.impl.ExternalSeedReaderImpl
INITIAL_DELAY, RECONNECT_DEFAULT, STALLED_DOWNLOAD_SPEED, STALLED_PEER_SPEED, TOP_PIECE_PRIORITY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExternalSeedReaderGetRight
(ExternalSeedPlugin _plugin, Torrent _torrent, URL _url, Map _params) -
Method Summary
Modifier and TypeMethodDescriptionvoid
calculatePriorityOffsets
(PeerManager peer_manager, int[] base_priorities) getName()
protected int
int
getPort()
protected boolean
getType()
getURL()
protected void
readData
(int start_piece_number, int start_piece_offset, int length, ExternalSeedHTTPDownloaderListener listener) protected void
readData
(ExternalSeedReaderRequest request) boolean
sameAs
(ExternalSeedReader other) protected void
setActiveSupport
(PeerManager peer_manager, boolean active) private void
long[]
updatePriorities
(PiecePicker picker) Methods inherited from class com.biglybt.plugin.extseed.impl.ExternalSeedReaderImpl
addListener, addRequests, cancelAllRequests, cancelRequest, checkActivation, deactivate, eventOccurred, getBooleanParam, getCurrentIncomingRequestProgress, getExpiredRequests, getFailureCount, getIntParam, getIP, getLastFailTime, getMaximumNumberOfRequests, getOutgoingRequestCount, getOutgoingRequestedPieceNumbers, getPermittedBytes, getPriorityOffsets, getRequestCount, getRequests, getStatus, getSystemTime, getTorrent, getUserAgent, informCancelled, informComplete, informFailed, isActive, isPermanentlyUnavailable, isTransient, log, processRequests, processRequests, read, readBytes, readyToActivate, readyToDeactivate, removeListener, reportBytesRead, selectRequests, setActive, setReconnectDelay
-
Field Details
-
TARGET_REQUEST_SIZE_DEFAULT
private static final int TARGET_REQUEST_SIZE_DEFAULT- See Also:
-
url
-
port
private int port -
http_downloaders
-
downloader_offsets
private long[] downloader_offsets -
downloader_lengths
private long[] downloader_lengths -
piece_size
private int piece_size -
piece_group_size
private int piece_group_size -
piece_priorities
private long[] piece_priorities -
linear_download
private boolean linear_download
-
-
Constructor Details
-
Method Details
-
setupDownloaders
private void setupDownloaders() -
sameAs
- Specified by:
sameAs
in interfaceExternalSeedReader
-
getName
- Specified by:
getName
in interfaceExternalSeedReader
-
getType
- Specified by:
getType
in interfaceExternalSeedReader
-
getURL
- Specified by:
getURL
in interfaceExternalSeedReader
-
getPort
public int getPort()- Specified by:
getPort
in interfaceExternalSeedReader
-
getPieceGroupSize
protected int getPieceGroupSize()- Specified by:
getPieceGroupSize
in classExternalSeedReaderImpl
-
getRequestCanSpanPieces
protected boolean getRequestCanSpanPieces()- Specified by:
getRequestCanSpanPieces
in classExternalSeedReaderImpl
-
setActiveSupport
- Overrides:
setActiveSupport
in classExternalSeedReaderImpl
-
updatePriorities
- Specified by:
updatePriorities
in interfacePiecePriorityProvider
-
calculatePriorityOffsets
- Specified by:
calculatePriorityOffsets
in interfaceExternalSeedReader
- Overrides:
calculatePriorityOffsets
in classExternalSeedReaderImpl
-
readData
- Overrides:
readData
in classExternalSeedReaderImpl
- Throws:
ExternalSeedException
-
readData
protected void readData(int start_piece_number, int start_piece_offset, int length, ExternalSeedHTTPDownloaderListener listener) throws ExternalSeedException - Specified by:
readData
in classExternalSeedReaderImpl
- Throws:
ExternalSeedException
-