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(java.util.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(java.lang.String reason)
           
 java.util.List<PeerReadRequest> getExpiredRequests()
           
 java.lang.String getIP()
           
 int getMaximumNumberOfRequests()
           
 java.lang.String getName()
           
 int getOutgoingRequestCount()
           
 int[] getOutgoingRequestedPieceNumbers()
           
 int getPercentDoneOfCurrentIncomingRequest()
           
 int getPort()
           
 int[] getPriorityOffsets()
           
 int getRequestCount()
           
 java.util.List<PeerReadRequest> getRequests()
           
 java.lang.String getStatus()
           
 Torrent getTorrent()
           
 java.lang.String getType()
           
 java.net.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

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)