My application needs a layer between Java and the file system in order to make transparent the fact that the file system contains only a subset of all files (stored on S3). A layer should do a lot of what a regular IO file does, which should open files, block them for reading / writing, etc., but when it opens, it should probably load files and exit closed ones. Another feature that I need is that if the file is locked for reading / writing, an open call can unlock the file and close the existing stream (i.e., disconnect another user). Another is managing temporary files.
Is there anything remotely similar to open source, or do I just need to roll up my sleeves? Should I start from scratch, or are there some hooks in java IO that I have to click?
source share