Class FMFileAccessLinear
java.lang.Object
com.biglybt.core.diskmanager.file.impl.FMFileAccessLinear
- All Implemented Interfaces:
FMFileAccess
-
Nested Class Summary
Nested classes/interfaces inherited from interface FMFileAccess
FMFileAccess.FileAccessor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate static final booleanprivate final FMFileImplprivate static final intprivate static final intprivate static final booleanprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidflush()getFile()longbooleanisPieceCompleteProcessingNeeded(int piece_number) voidread(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long offset) voidread(FMFileAccess.FileAccessor fa, DirectByteBuffer buffer, long offset) voidsetLength(FMFileAccess.FileAccessor fa, long length) voidsetPieceComplete(FMFileAccess.FileAccessor fa, int piece_number, DirectByteBuffer piece_data) voidwrite(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long position)
-
Field Details
-
WRITE_RETRY_LIMIT
private static final int WRITE_RETRY_LIMIT- See Also:
-
WRITE_RETRY_DELAY
private static final int WRITE_RETRY_DELAY- See Also:
-
READ_RETRY_LIMIT
private static final int READ_RETRY_LIMIT- See Also:
-
READ_RETRY_DELAY
private static final int READ_RETRY_DELAY- See Also:
-
DEBUG
private static final boolean DEBUG- See Also:
-
DEBUG_VERBOSE
private static final boolean DEBUG_VERBOSE- See Also:
-
USE_MMAP
private static final boolean USE_MMAP -
owner
-
-
Constructor Details
-
FMFileAccessLinear
-
-
Method Details
-
aboutToOpen
- Specified by:
aboutToOpenin interfaceFMFileAccess- Throws:
FMFileManagerException
-
getLength
- Specified by:
getLengthin interfaceFMFileAccess- Throws:
FMFileManagerException
-
setLength
- Specified by:
setLengthin interfaceFMFileAccess- Throws:
FMFileManagerException
-
isPieceCompleteProcessingNeeded
public boolean isPieceCompleteProcessingNeeded(int piece_number) - Specified by:
isPieceCompleteProcessingNeededin interfaceFMFileAccess
-
setPieceComplete
public void setPieceComplete(FMFileAccess.FileAccessor fa, int piece_number, DirectByteBuffer piece_data) throws FMFileManagerException - Specified by:
setPieceCompletein interfaceFMFileAccess- Throws:
FMFileManagerException
-
read
public void read(FMFileAccess.FileAccessor fa, DirectByteBuffer buffer, long offset) throws FMFileManagerException - Throws:
FMFileManagerException
-
read
public void read(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long offset) throws FMFileManagerException - Specified by:
readin interfaceFMFileAccess- Throws:
FMFileManagerException
-
write
public void write(FMFileAccess.FileAccessor fa, DirectByteBuffer[] buffers, long position) throws FMFileManagerException - Specified by:
writein interfaceFMFileAccess- Throws:
FMFileManagerException
-
flush
- Specified by:
flushin interfaceFMFileAccess- Throws:
FMFileManagerException
-
getFile
- Specified by:
getFilein interfaceFMFileAccess
-
getString
- Specified by:
getStringin interfaceFMFileAccess
-