Methods Summary |
---|
public void | addListener(DiskManagerListener l)
|
public boolean | checkBlockConsistencyForHint(java.lang.String originator, int pieceNumber, int offset, int length)
|
public boolean | checkBlockConsistencyForRead(java.lang.String originator, int pieceNumber, int offset, int length)method for checking that the block details are sensible
|
public boolean | checkBlockConsistencyForWrite(java.lang.String originator, int pieceNumber, int offset, org.gudy.azureus2.core3.util.DirectByteBuffer data)method for checking that the block details are sensible
|
public DiskManagerCheckRequest | createCheckRequest(int pieceNumber, java.lang.Object user_data)Create a request to check a particular piece
|
public DiskManagerReadRequest | createReadRequest(int pieceNumber, int offset, int length)
|
public DiskManagerWriteRequest | createWriteRequest(int pieceNumber, int offset, org.gudy.azureus2.core3.util.DirectByteBuffer data, java.lang.Object user_data)
|
public void | downloadEnded()
|
public void | downloadRemoved()
|
public void | enqueueCheckRequest(DiskManagerCheckRequest request, DiskManagerCheckRequestListener listener)enqueue an asynchronous single piece check
|
public void | enqueueCompleteRecheckRequest(DiskManagerCheckRequest request, DiskManagerCheckRequestListener listener)recheck the entire torrent asynchronously, reporting each piece to the listener
|
public void | enqueueReadRequest(DiskManagerReadRequest request, DiskManagerReadRequestListener listener)Enqueue an async disk read request.
|
public void | enqueueWriteRequest(DiskManagerWriteRequest request, DiskManagerWriteRequestListener listener)enqueue an async write request
|
public boolean | filesExist()
|
public boolean | forceNoCache()
|
public void | generateEvidence(org.gudy.azureus2.core3.util.IndentWriter writer)
|
public int | getCompleteRecheckStatus()returns -1 if no recheck in progress, percentage complete in 1000 notation otherwise
|
public java.lang.String | getErrorMessage()
|
public DiskManagerFileInfo[] | getFiles()
|
public int | getNbPieces()
|
public int | getPercentDone()
|
public DiskManagerPiece | getPiece(int PieceNumber)
|
public int | getPieceLength()
|
public int | getPieceLength(int piece_number)
|
public org.gudy.azureus2.core3.disk.impl.piecemapper.DMPieceList | getPieceList(int pieceNumber)
|
public DiskManagerPiece[] | getPieces()
|
public long | getRemaining()
|
public long | getRemainingExcludingDND()
|
public java.io.File | getSaveLocation()
|
public int | getState()
|
public org.gudy.azureus2.core3.torrent.TOTorrent | getTorrent()
|
public long | getTotalLength()
|
public boolean | hasOutstandingWriteRequestForPiece(int piece_number)
|
public boolean | isDone(int pieceNumber)
|
public boolean | isInteresting(int pieceNumber)
|
public void | moveDataFiles(java.io.File new_parent_dir, java.lang.String dl_name)
|
public org.gudy.azureus2.core3.util.DirectByteBuffer | readBlock(int pieceNumber, int offset, int length)
|
public void | removeListener(DiskManagerListener l)
|
public void | saveResumeData(boolean interim_save)
|
public void | saveState()Save the individual file priorities map to
DownloadManager.getData( "file_priorities" ).
|
public void | setPieceCheckingEnabled(boolean enabled)
|
public void | start()Start checking/allocating
|
public void | stop(boolean closing)
|