com.aelitis.azureus.core.diskmanager.file.impl
Class FMFileManagerImpl

java.lang.Object
  extended by com.aelitis.azureus.core.diskmanager.file.impl.FMFileManagerImpl
All Implemented Interfaces:
FMFileManager

public class FMFileManagerImpl
extends java.lang.Object
implements FMFileManager


Field Summary
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
protected FMFileManagerImpl()
           
 
Method Summary
protected  void closeFile(FMFileLimited file)
           
protected  void closeQueueDispatch()
           
 FMFile createFile(FMFileOwner owner, java.io.File file, int type)
           
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)
           
protected  void releaseSlot(FMFileLimited file)
           
 void setFileLinks(TOTorrent torrent, LinkFileMap new_links)
           
protected  void usedSlot(FMFileLimited file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

FMFileManagerImpl

protected FMFileManagerImpl()
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 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)