com.aelitis.azureus.plugins.extseed
Interface ExternalSeedReader
- All Known Implementing Classes:
- ExternalSeedReaderGetRight, ExternalSeedReaderImpl, ExternalSeedReaderWebSeed
public interface ExternalSeedReader
getTorrent
Torrent getTorrent()
getName
java.lang.String getName()
getType
java.lang.String getType()
getStatus
java.lang.String getStatus()
isTransient
boolean isTransient()
isPermanentlyUnavailable
boolean isPermanentlyUnavailable()
getURL
java.net.URL getURL()
getIP
java.lang.String getIP()
getPort
int getPort()
isActive
boolean isActive()
sameAs
boolean sameAs(ExternalSeedReader other)
checkActivation
boolean checkActivation(PeerManager peer_manager,
Peer peer)
addRequests
void addRequests(java.util.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
java.util.List<PeerReadRequest> getExpiredRequests()
getRequests
java.util.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(java.lang.String reason)
addListener
void addListener(ExternalSeedReaderListener l)
removeListener
void removeListener(ExternalSeedReaderListener l)