File Manager
FileManager manages the access to the source and resource files in Avail s. It provides an LRU caching mechanism by which open files can be added and removed as needed to control the number of open files in memory.
Author
Richard Arriaga
Properties
The IOSystem used by this FileManager.
Functions
Associate an AvailRuntime with this FileManager.
Check if interest in the file associated with the provided fileCache id still exists (interest count 0). If there is no file interest the file is closed and fully removed from the fileCache.
Close this FileManager. Should be called at shutdown to ensure proper clean up of any open resources.
Create a file.
Delete the file at the provided ResolverReference.
Deregister interest in the file associated with the provided fileCache id. If the resulting interest count is 0, the file is closed and fully removed from the fileCache.
Retrieve the ManagedFileWrapper and provide it with a request to obtain the raw file bytes.
Schedule the specified task for eventual execution by the thread pool executor for asynchronous file operations. The implementation is free to run the task immediately or delay its execution arbitrarily. The task will not execute on an Avail thread.
Answer the FileManager file id for the provided ResolverReference.
Attempt to provide a file if it already exists in this FileManager without directly requesting it be added.
Retrieve the AbstractFileWrapper and provide it with a request to obtain the raw file bytes.
Answer the AvailRuntime associated with this FileManager.