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