org.gudy.azureus2.core3.disk.impl.access.impl
Class DMWriterImpl
java.lang.Object
org.gudy.azureus2.core3.disk.impl.access.impl.DMWriterImpl
- All Implemented Interfaces:
- DMWriter
public class DMWriterImpl
- extends java.lang.Object
- implements DMWriter
- Author:
- parg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DMWriterImpl
public DMWriterImpl(DiskManagerHelper _disk_manager)
start
public void start()
- Specified by:
start
in interface DMWriter
stop
public void stop()
- Specified by:
stop
in interface DMWriter
isChecking
public boolean isChecking()
zeroFile
public boolean zeroFile(DiskManagerFileInfoImpl file,
long length)
throws DiskManagerException
- Specified by:
zeroFile
in interface DMWriter
- Throws:
DiskManagerException
createWriteRequest
public DiskManagerWriteRequest createWriteRequest(int pieceNumber,
int offset,
DirectByteBuffer buffer,
java.lang.Object user_data)
- Specified by:
createWriteRequest
in interface DMWriter
hasOutstandingWriteRequestForPiece
public boolean hasOutstandingWriteRequestForPiece(int piece_number)
- Specified by:
hasOutstandingWriteRequestForPiece
in interface DMWriter
writeBlock
public void writeBlock(DiskManagerWriteRequest request,
DiskManagerWriteRequestListener _listener)
- Specified by:
writeBlock
in interface DMWriter