com.aelitis.azureus.plugins.extseed
Interface ExternalSeedReader
- All Known Implementing Classes:
- ExternalSeedReaderGetRight, ExternalSeedReaderImpl, ExternalSeedReaderWebSeed
public interface ExternalSeedReader
getTorrent
Torrent getTorrent()
getName
String getName()
getType
String getType()
getStatus
String getStatus()
isTransient
boolean isTransient()
isPermanentlyUnavailable
boolean isPermanentlyUnavailable()
getURL
URL getURL()
getIP
String getIP()
getPort
int getPort()
isActive
boolean isActive()
sameAs
boolean sameAs(ExternalSeedReader other)
checkActivation
boolean checkActivation(PeerManager peer_manager,
Peer peer)
addRequests
void addRequests(List<PeerReadRequest> requests)
cancelRequest
void cancelRequest(PeerReadRequest request)
getMaximumNumberOfRequests
int getMaximumNumberOfRequests()
calculatePriorityOffsets
void calculatePriorityOffsets(PeerManager peer_manager,
int[] base_priorities)
getPriorityOffsets
int[] getPriorityOffsets()
cancelAllRequests
void cancelAllRequests()
getRequestCount
int getRequestCount()
getExpiredRequests
List<PeerReadRequest> getExpiredRequests()
getRequests
List<PeerReadRequest> getRequests()
readBytes
int readBytes(int max)
getPercentDoneOfCurrentIncomingRequest
int getPercentDoneOfCurrentIncomingRequest()
getOutgoingRequestedPieceNumbers
int[] getOutgoingRequestedPieceNumbers()
getOutgoingRequestCount
int getOutgoingRequestCount()
read
byte[] read(int piece_number,
int offset,
int length,
int timeout)
throws ExternalSeedException
- Throws:
ExternalSeedException
deactivate
void deactivate(String reason)
addListener
void addListener(ExternalSeedReaderListener l)
removeListener
void removeListener(ExternalSeedReaderListener l)