com.aelitis.azureus.core.diskmanager.file.impl
Class FMFileManagerImpl
java.lang.Object
com.aelitis.azureus.core.diskmanager.file.impl.FMFileManagerImpl
- All Implemented Interfaces:
- FMFileManager
public class FMFileManagerImpl
- extends java.lang.Object
- implements FMFileManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FMFileManagerImpl
protected FMFileManagerImpl()
getSingleton
public static FMFileManager getSingleton()
getLinksEntry
protected LinkFileMap getLinksEntry(TOTorrent torrent)
setFileLinks
public void setFileLinks(TOTorrent torrent,
LinkFileMap new_links)
- Specified by:
setFileLinks
in interface FMFileManager
getFileLink
public java.io.File getFileLink(TOTorrent torrent,
int file_index,
java.io.File file)
- Specified by:
getFileLink
in interface FMFileManager
createFile
public FMFile createFile(FMFileOwner owner,
java.io.File file,
int type)
throws FMFileManagerException
- Specified by:
createFile
in interface FMFileManager
- 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)