public class JGitFileSystemProxy extends Object implements JGitFileSystem
Constructor and Description |
---|
JGitFileSystemProxy(String fsName,
Supplier<JGitFileSystem> cachedSupplier) |
public JGitFileSystemProxy(String fsName, Supplier<JGitFileSystem> cachedSupplier)
public String getName()
getName
in interface FileSystem
public Git getGit()
getGit
in interface JGitFileSystem
public org.eclipse.jgit.transport.CredentialsProvider getCredential()
getCredential
in interface JGitFileSystem
public void checkClosed() throws IllegalStateException
checkClosed
in interface JGitFileSystem
IllegalStateException
public void publishEvents(Path watchable, List<WatchEvent<?>> elist)
publishEvents
in interface JGitFileSystem
public boolean isOnBatch()
isOnBatch
in interface JGitFileSystem
public void setState(String state)
setState
in interface JGitFileSystem
public CommitInfo buildCommitInfo(String defaultMessage, CommentedOption op)
buildCommitInfo
in interface JGitFileSystem
public void setBatchCommitInfo(String defaultMessage, CommentedOption op)
setBatchCommitInfo
in interface JGitFileSystem
public void setHadCommitOnBatchState(Path path, boolean hadCommitOnBatchState)
setHadCommitOnBatchState
in interface JGitFileSystem
public void setHadCommitOnBatchState(boolean value)
setHadCommitOnBatchState
in interface JGitFileSystem
public boolean isHadCommitOnBatchState(Path path)
isHadCommitOnBatchState
in interface JGitFileSystem
public void setBatchCommitInfo(CommitInfo batchCommitInfo)
setBatchCommitInfo
in interface JGitFileSystem
public CommitInfo getBatchCommitInfo()
getBatchCommitInfo
in interface JGitFileSystem
public int incrementAndGetCommitCount()
incrementAndGetCommitCount
in interface JGitFileSystem
public void resetCommitCount()
resetCommitCount
in interface JGitFileSystem
public int getNumberOfCommitsSinceLastGC()
getNumberOfCommitsSinceLastGC
in interface JGitFileSystem
public void lock()
lock
in interface LockableFileSystem
public void unlock()
unlock
in interface LockableFileSystem
public void addPostponedWatchEvents(List<WatchEvent<?>> postponedWatchEvents)
addPostponedWatchEvents
in interface JGitFileSystem
public List<WatchEvent<?>> getPostponedWatchEvents()
getPostponedWatchEvents
in interface JGitFileSystem
public void clearPostponedWatchEvents()
clearPostponedWatchEvents
in interface JGitFileSystem
public boolean hasPostponedEvents()
hasPostponedEvents
in interface JGitFileSystem
public boolean hasBeenInUse()
hasBeenInUse
in interface JGitFileSystem
public void notifyExternalUpdate()
notifyExternalUpdate
in interface JGitFileSystem
public void notifyPostCommit(int exitCode)
notifyPostCommit
in interface JGitFileSystem
public FileSystemProvider provider()
provider
in interface FileSystem
public boolean isOpen()
isOpen
in interface FileSystem
public boolean isReadOnly()
isReadOnly
in interface FileSystem
public String getSeparator()
getSeparator
in interface FileSystem
public Iterable<Path> getRootDirectories()
getRootDirectories
in interface FileSystem
public Iterable<FileStore> getFileStores()
getFileStores
in interface FileSystem
public Set<String> supportedFileAttributeViews()
supportedFileAttributeViews
in interface FileSystem
public Path getPath(String first, String... more) throws InvalidPathException
getPath
in interface FileSystem
InvalidPathException
public PathMatcher getPathMatcher(String syntaxAndPattern) throws IllegalArgumentException, PatternSyntaxException, UnsupportedOperationException
getPathMatcher
in interface FileSystem
IllegalArgumentException
PatternSyntaxException
UnsupportedOperationException
public UserPrincipalLookupService getUserPrincipalLookupService() throws UnsupportedOperationException
getUserPrincipalLookupService
in interface FileSystem
UnsupportedOperationException
public WatchService newWatchService() throws UnsupportedOperationException, IOException
newWatchService
in interface FileSystem
UnsupportedOperationException
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void dispose()
dispose
in interface org.uberfire.commons.lifecycle.Disposable
public String id()
id
in interface FileSystemId
public FileSystemState getState()
getState
in interface FileSystemStateAware
public JGitFileSystem getRealJGitFileSystem()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.