Class FMFileLimited
java.lang.Object
com.biglybt.core.diskmanager.file.impl.FMFileImpl
com.biglybt.core.diskmanager.file.impl.FMFileLimited
- All Implemented Interfaces:
FMFile
-
Field Summary
Fields inherited from class FMFileImpl
READ_ACCESS_MODE, switch_to_upload_only_enable, this_mon, WRITE_ACCESS_MODEFields inherited from interface FMFile
FM_READ, FM_WRITE, FT_COMPACT, FT_LINEAR, FT_PIECE_REORDER, FT_PIECE_REORDER_COMPACT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFMFileLimited(FMFileOwner owner, FMFileManagerImpl manager, StringInterner.FileKey file, int type, boolean force) protectedFMFileLimited(FMFileLimited basis) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidclose(boolean explicit) voidensureOpen(String reason) longprotected voidgetSlot()voidread(DirectByteBuffer[] buffers, long offset) voidread(DirectByteBuffer buffer, long offset) protected voidvoidsetAccessMode(int mode) voidsetLength(long length) voidsetPieceComplete(int piece_number, DirectByteBuffer piece_data) protected voidusedSlot()voidwrite(DirectByteBuffer[] buffers, long position) voidwrite(DirectByteBuffer buffer, long position) Methods inherited from class FMFileImpl
closeSupport, createDirs, delete, deleteDirs, exists, flush, generateEvidence, getAccessMode, getFile, getLastModified, getLengthCache, getLengthSupport, getLinkedFile, getManager, getName, getOwner, getStorageType, getString, isClone, isOpen, isPieceCompleteProcessingNeeded, moveFile, openSupport, readSupport, readSupport, renameFile, reopen, setAccessModeSupport, setLengthSupport, setPieceCompleteSupport, setStorageType, writeSupport, writeSupport
-
Constructor Details
-
FMFileLimited
protected FMFileLimited(FMFileOwner owner, FMFileManagerImpl manager, StringInterner.FileKey file, int type, boolean force) throws FMFileManagerException - Throws:
FMFileManagerException
-
FMFileLimited
- Throws:
FMFileManagerException
-
-
Method Details
-
createClone
- Throws:
FMFileManagerException
-
ensureOpen
- Specified by:
ensureOpenin interfaceFMFile- Overrides:
ensureOpenin classFMFileImpl- Throws:
FMFileManagerException
-
getSlot
protected void getSlot() -
releaseSlot
protected void releaseSlot() -
usedSlot
protected void usedSlot() -
setAccessMode
- Throws:
FMFileManagerException
-
getLength
- Throws:
FMFileManagerException
-
setLength
- Throws:
FMFileManagerException
-
setPieceComplete
public void setPieceComplete(int piece_number, DirectByteBuffer piece_data) throws FMFileManagerException - Throws:
FMFileManagerException
-
read
- Throws:
FMFileManagerException
-
read
- Throws:
FMFileManagerException
-
write
- Throws:
FMFileManagerException
-
write
- Throws:
FMFileManagerException
-
close
- Throws:
FMFileManagerException
-
close
- Throws:
FMFileManagerException
-