org.gudy.azureus2.pluginsimpl.local.disk
Class DiskManagerImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.disk.DiskManagerImpl
All Implemented Interfaces:
DiskManager

public class DiskManagerImpl
extends Object
implements DiskManager


Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.disk.DiskManager
BLOCK_SIZE
 
Constructor Summary
DiskManagerImpl(DiskManager _disk_manager)
           
 
Method Summary
 DiskManager getDiskmanager()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskManagerImpl

public DiskManagerImpl(DiskManager _disk_manager)
Method Detail

getDiskmanager

public DiskManager getDiskmanager()

read

public DiskManagerReadRequest read(int piece_number,
                                   int offset,
                                   int length,
                                   DiskManagerReadRequestListener listener)
                            throws DiskManagerException
Specified by:
read in interface DiskManager
Throws:
DiskManagerException

write

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

Specified by:
write in interface DiskManager
Returns:
Throws:
DiskManagerException