Package io.roastedroot.zerofs
Class ZeroFsFileSystems
- java.lang.Object
-
- io.roastedroot.zerofs.ZeroFsFileSystems
-
final class ZeroFsFileSystems extends java.lang.ObjectInitializes and configures new file system instances.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.RunnableDO_NOTHING
-
Constructor Summary
Constructors Modifier Constructor Description privateZeroFsFileSystems()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static FileSystemViewcreateDefaultView(Configuration config, ZeroFsFileStore fileStore, PathService pathService)Creates the default view of the file system using the given working directory.private static ZeroFsFileStorecreateFileStore(Configuration config, PathService pathService, FileSystemState state)Creates the file store for the file system.static ZeroFsFileSystemnewFileSystem(ZeroFsFileSystemProvider provider, java.net.URI uri, Configuration config)Initialize and configure a new file system with the given provider and URI, using the given configuration.private static java.lang.RunnableremoveFileSystemRunnable(java.net.URI uri)Returns aRunnablethat will remove the file system with the givenURIfrom the system provider's cache when called.
-
-
-
Method Detail
-
removeFileSystemRunnable
private static java.lang.Runnable removeFileSystemRunnable(java.net.URI uri)
Returns aRunnablethat will remove the file system with the givenURIfrom the system provider's cache when called.
-
newFileSystem
public static ZeroFsFileSystem newFileSystem(ZeroFsFileSystemProvider provider, java.net.URI uri, Configuration config) throws java.io.IOException
Initialize and configure a new file system with the given provider and URI, using the given configuration.- Throws:
java.io.IOException
-
createFileStore
private static ZeroFsFileStore createFileStore(Configuration config, PathService pathService, FileSystemState state)
Creates the file store for the file system.
-
createDefaultView
private static FileSystemView createDefaultView(Configuration config, ZeroFsFileStore fileStore, PathService pathService) throws java.io.IOException
Creates the default view of the file system using the given working directory.- Throws:
java.io.IOException
-
-