org.gudy.azureus2.plugins.disk
Interface DiskManager

All Known Implementing Classes:
DiskManagerImpl

public interface DiskManager

Author:
parg

Field Summary
static int BLOCK_SIZE
           
 
Method Summary
 DiskManagerReadRequest read(int piece_number, int offset, int length, DiskManagerReadRequestListener listener)
           
 DiskManagerWriteRequest write(int piece_number, int offset, PooledByteBuffer data, DiskManagerWriteRequestListener listener)
          Data length has to be consistent with block layout of the piece and piece size
 

Field Detail

BLOCK_SIZE

static final int BLOCK_SIZE
See Also:
Constant Field Values
Method Detail

read

DiskManagerReadRequest read(int piece_number,
                            int offset,
                            int length,
                            DiskManagerReadRequestListener listener)
                            throws DiskManagerException
Throws:
DiskManagerException

write

DiskManagerWriteRequest write(int piece_number,
                              int offset,
                              PooledByteBuffer data,
                              DiskManagerWriteRequestListener listener)
                              throws DiskManagerException
Data length has to be consistent with block layout of the piece and piece size

Parameters:
piece_number -
offset -
data -
listener -
Returns:
Throws:
DiskManagerException