com.aelitis.azureus.plugins.extseed
Interface ExternalSeedReader

All Known Implementing Classes:
ExternalSeedReaderGetRight, ExternalSeedReaderImpl, ExternalSeedReaderWebSeed

public interface ExternalSeedReader


Method Summary
 void addListener(ExternalSeedReaderListener l)
           
 void addRequests(List<PeerReadRequest> requests)
           
 void calculatePriorityOffsets(PeerManager peer_manager, int[] base_priorities)
           
 void cancelAllRequests()
           
 void cancelRequest(PeerReadRequest request)
           
 boolean checkActivation(PeerManager peer_manager, Peer peer)
           
 void deactivate(String reason)
           
 List<PeerReadRequest> getExpiredRequests()
           
 String getIP()
           
 int getMaximumNumberOfRequests()
           
 String getName()
           
 int getOutgoingRequestCount()
           
 int[] getOutgoingRequestedPieceNumbers()
           
 int getPercentDoneOfCurrentIncomingRequest()
           
 int getPort()
           
 int[] getPriorityOffsets()
           
 int getRequestCount()
           
 List<PeerReadRequest> getRequests()
           
 String getStatus()
           
 Torrent getTorrent()
           
 String getType()
           
 URL getURL()
           
 boolean isActive()
           
 boolean isPermanentlyUnavailable()
           
 boolean isTransient()
           
 byte[] read(int piece_number, int offset, int length, int timeout)
           
 int readBytes(int max)
           
 void removeListener(ExternalSeedReaderListener l)
           
 boolean sameAs(ExternalSeedReader other)
           
 

Method Detail

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)