com.aelitis.azureus.plugins.extseed.impl.webseed
Class ExternalSeedReaderWebSeed

java.lang.Object
  extended by com.aelitis.azureus.plugins.extseed.impl.ExternalSeedReaderImpl
      extended by com.aelitis.azureus.plugins.extseed.impl.webseed.ExternalSeedReaderWebSeed
All Implemented Interfaces:
ExternalSeedReader, PeerManagerListener2

public class ExternalSeedReaderWebSeed
extends ExternalSeedReaderImpl


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aelitis.azureus.plugins.extseed.impl.ExternalSeedReaderImpl
ExternalSeedReaderImpl.MutableInteger
 
Field Summary
 
Fields inherited from class com.aelitis.azureus.plugins.extseed.impl.ExternalSeedReaderImpl
INITIAL_DELAY, RECONNECT_DEFAULT, STALLED_DOWNLOAD_SPEED, STALLED_PEER_SPEED, TOP_PIECE_PRIORITY
 
Constructor Summary
protected ExternalSeedReaderWebSeed(ExternalSeedPlugin _plugin, Torrent _torrent, java.net.URL _url, java.util.Map _params)
           
 
Method Summary
 java.lang.String getName()
           
protected  int getPieceGroupSize()
           
 int getPort()
           
protected  boolean getRequestCanSpanPieces()
           
 java.lang.String getType()
           
 java.net.URL getURL()
           
protected  void readData(int piece_number, int piece_offset, int length, ExternalSeedHTTPDownloaderListener listener)
           
 boolean sameAs(ExternalSeedReader other)
           
 
Methods inherited from class com.aelitis.azureus.plugins.extseed.impl.ExternalSeedReaderImpl
addListener, addRequests, calculatePriorityOffsets, cancelAllRequests, cancelRequest, checkActivation, deactivate, eventOccurred, getBooleanParam, getExpiredRequests, getFailureCount, getIntParam, getIP, getLastFailTime, getMaximumNumberOfRequests, getOutgoingRequestCount, getOutgoingRequestedPieceNumbers, getPercentDoneOfCurrentIncomingRequest, getPermittedBytes, getPriorityOffsets, getRequestCount, getRequests, getStatus, getSystemTime, getTorrent, getUserAgent, informCancelled, informComplete, informFailed, isActive, isPermanentlyUnavailable, isTransient, log, processRequests, processRequests, read, readBytes, readData, readyToActivate, readyToDeactivate, removeListener, reportBytesRead, selectRequests, setActive, setActiveSupport, setReconnectDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalSeedReaderWebSeed

protected ExternalSeedReaderWebSeed(ExternalSeedPlugin _plugin,
                                    Torrent _torrent,
                                    java.net.URL _url,
                                    java.util.Map _params)
Method Detail

sameAs

public boolean sameAs(ExternalSeedReader other)

getName

public java.lang.String getName()

getType

public java.lang.String getType()

getURL

public java.net.URL getURL()

getPort

public int getPort()

getPieceGroupSize

protected int getPieceGroupSize()
Specified by:
getPieceGroupSize in class ExternalSeedReaderImpl

getRequestCanSpanPieces

protected boolean getRequestCanSpanPieces()
Specified by:
getRequestCanSpanPieces in class ExternalSeedReaderImpl

readData

protected void readData(int piece_number,
                        int piece_offset,
                        int length,
                        ExternalSeedHTTPDownloaderListener listener)
                 throws ExternalSeedException
Specified by:
readData in class ExternalSeedReaderImpl
Throws:
ExternalSeedException