FileDocCategorySizeDatePackage
PiecePicker.javaAPI DocAzureus 3.0.3.43547Tue Aug 14 22:27:08 BST 2007com.aelitis.azureus.core.peermanager.piecepicker

PiecePicker

public interface PiecePicker
author
MjrTom

Fields Summary
public static final int
REQUEST_HINT_MAX_LIFE
Constructors Summary
Methods Summary
public voidaddEndGameBlocks(org.gudy.azureus2.core3.peer.PEPiece pePiece)
adds only the blocks that aren't downloaded or written to endGameModeChunks

param
pePiece

public voidaddEndGameChunks(org.gudy.azureus2.core3.peer.PEPiece pePiece)
adds all blocks in the piece to endGameModeChunks

param
pePiece

public voidaddHavePiece(org.gudy.azureus2.core3.peer.PEPeer peer, int pieceNumber)

public voidaddListener(PiecePickerListener listener)

public voidaddPriorityProvider(PiecePriorityProvider shaper)

public voidaddRTAProvider(PieceRTAProvider shaper)

public voidallocateRequests()

public voidclearEndGameChunks()

public voiddestroy()

public voidgenerateEvidence(org.gudy.azureus2.core3.util.IndentWriter writer)

public longgetAvailWentBadTime()

public int[]getAvailability()

public intgetAvailability(int pieceNumber)

public floatgetAvgAvail()

public intgetMaxAvailability()

public floatgetMinAvailability()

public intgetNbPiecesDone()

public longgetNeededUndonePieceChange()

return
long value indicated serial number of current count of changes to hasNeededUndonePiece. A method interesting in tracking changes can compare this with a locally stored value to determine if the hasNeededUndonePiece status has changed since the last check.

public intgetNumberOfPieces()

public java.lang.StringgetPieceString(int piece_number)

public java.util.ListgetPriorityProviders()

public java.util.ListgetRTAProviders()

public booleanhasDownloadablePiece()

public booleanhasEndGameModeBeenAbandoned()

public booleanisInEndGameMode()

public voidremoveFromEndGameModeChunks(int pieceNumber, int offset)

public voidremoveListener(PiecePickerListener listener)

public voidremovePriorityProvider(PiecePriorityProvider shaper)

public voidremoveRTAProvider(PieceRTAProvider shaper)

public voidupdateAvailability()
This is called periodically by the peer control scheduler. It should not normally be called by other methods. It will update the global availability if neccesary and then update the derived information