Class JGitFileSystemsManager
- java.lang.Object
-
- org.uberfire.java.nio.fs.jgit.manager.JGitFileSystemsManager
-
public class JGitFileSystemsManager extends Object
-
-
Constructor Summary
Constructors Constructor Description JGitFileSystemsManager(JGitFileSystemProvider jGitFileSystemProvider, JGitFileSystemProviderConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClosedFileSystems(JGitFileSystem fileSystem)booleanallTheFSAreClosed()voidclear()booleancontainsKey(String fsName)booleancontainsRoot(String fsName)JGitFileSystemget(String fsName)JGitFileSystemget(org.eclipse.jgit.lib.Repository db)JGitFileSystemsCachegetFsCache()Set<JGitFileSystem>getOpenFileSystems()voidnewFileSystem(Supplier<Map<String,String>> fullHostNames, Supplier<Git> git, Supplier<String> fsName, Supplier<org.eclipse.jgit.transport.CredentialsProvider> credential, Supplier<JGitFileSystemsEventsManager> fsManager, Supplier<Map<org.uberfire.java.nio.file.extensions.FileSystemHooks,?>> fsHooks)voidremove(String realFSKey)voidupdateFSCacheEntry(String fsKey, JGitFileSystem jGitFileSystem)
-
-
-
Constructor Detail
-
JGitFileSystemsManager
public JGitFileSystemsManager(JGitFileSystemProvider jGitFileSystemProvider, JGitFileSystemProviderConfiguration config)
-
-
Method Detail
-
newFileSystem
public void newFileSystem(Supplier<Map<String,String>> fullHostNames, Supplier<Git> git, Supplier<String> fsName, Supplier<org.eclipse.jgit.transport.CredentialsProvider> credential, Supplier<JGitFileSystemsEventsManager> fsManager, Supplier<Map<org.uberfire.java.nio.file.extensions.FileSystemHooks,?>> fsHooks)
-
updateFSCacheEntry
public void updateFSCacheEntry(String fsKey, JGitFileSystem jGitFileSystem)
-
remove
public void remove(String realFSKey)
-
get
public JGitFileSystem get(String fsName)
-
clear
public void clear()
-
containsKey
public boolean containsKey(String fsName)
-
containsRoot
public boolean containsRoot(String fsName)
-
addClosedFileSystems
public void addClosedFileSystems(JGitFileSystem fileSystem)
-
allTheFSAreClosed
public boolean allTheFSAreClosed()
-
get
public JGitFileSystem get(org.eclipse.jgit.lib.Repository db)
-
getOpenFileSystems
public Set<JGitFileSystem> getOpenFileSystems()
-
getFsCache
public JGitFileSystemsCache getFsCache()
-
-