Class FMFileManagerImpl
java.lang.Object
com.biglybt.core.diskmanager.file.impl.FMFileManagerImpl
- All Implemented Interfaces:
FMFileManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final AEMonitor
protected List
protected final AEMonitor
protected AESemaphore
static final boolean
protected List
protected final AEMonitor
protected final int
protected final boolean
protected final HashMap<Object,
LinkFileMap> protected final AEMonitor
protected final LinkedHashMap
protected final AEMonitor
protected static FMFileManagerImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
closeFile
(FMFileLimited file) protected void
createFile
(FMFileOwner owner, File file, int type, boolean force) protected void
generate
(IndentWriter writer) protected void
generate
(IndentWriter writer, TOTorrent torrent) protected static void
generateEvidence
(IndentWriter writer) void
generateEvidence
(IndentWriter writer, TOTorrent torrent) getFileLink
(TOTorrent torrent, int file_index, File file) protected LinkFileMap
getLinksEntry
(TOTorrent torrent) static FMFileManager
protected void
getSlot
(FMFileLimited file) boolean
protected void
releaseSlot
(FMFileLimited file) void
setFileLinks
(TOTorrent torrent, LinkFileMap new_links) protected void
usedSlot
(FMFileLimited file)
-
Field Details
-
DEBUG
public static final boolean DEBUG- See Also:
-
singleton
-
class_mon
-
map
-
map_mon
-
links
-
links_mon
-
limited
protected final boolean limited -
limit_size
protected final int limit_size -
close_queue_sem
-
close_queue
-
close_queue_mon
-
files
-
files_mon
-
-
Constructor Details
-
FMFileManagerImpl
protected FMFileManagerImpl()
-
-
Method Details
-
getSingleton
-
getLinksEntry
-
setFileLinks
- Specified by:
setFileLinks
in interfaceFMFileManager
-
getFileLink
- Specified by:
getFileLink
in interfaceFMFileManager
-
hasLinks
- Specified by:
hasLinks
in interfaceFMFileManager
-
createFile
public FMFile createFile(FMFileOwner owner, File file, int type, boolean force) throws FMFileManagerException - Specified by:
createFile
in interfaceFMFileManager
- Throws:
FMFileManagerException
-
getSlot
-
releaseSlot
-
usedSlot
-
closeFile
-
closeQueueDispatch
protected void closeQueueDispatch() -
generate
-
generate
-
generateEvidence
-
generateEvidence
- Specified by:
generateEvidence
in interfaceFMFileManager
-