Class GitFsCacheProxy
java.lang.Object
io.github.andreyzebin.gitSql.cache.GitFsCacheProxy
- All Implemented Interfaces:
Branches,GitAPI,GitDirectory,GitFs,Origins,Versions,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionGitFsCacheProxy(GitFs gfs, AtomicReference<String> cacheControl, AtomicReference<String> commitCacheControl, Map<String, String> branchCache, Map<String, List<Commit>> commitCache) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(GitEventListener listener) static GitFsCacheProxycachedProxy(GitFs gfs, AtomicReference<String> cacheControl) voidclose()voidcommit()booleanvoidfetch()getChanges(String hashFrom) getChanges(String hashFrom, String hashTo) io.github.zebin.javabash.sandbox.DirectoryTreegetRoot()getUpstream(String local) voidvoidpull()voidpush()voidreset()voidvoidvoidsetUpstream(String local, String origin) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.andreyzebin.gitSql.git.GitDirectory
getLocation
-
Constructor Details
-
GitFsCacheProxy
-
-
Method Details
-
cachedProxy
-
addListener
-
seek
-
setBranch
-
merge
-
listBranches
- Specified by:
listBranchesin interfaceBranches
-
getBranch
-
listCommits
- Specified by:
listCommitsin interfaceVersions
-
contains
-
getChanges
- Specified by:
getChangesin interfaceVersions
-
getChanges
- Specified by:
getChangesin interfaceVersions
-
getTimestamp
- Specified by:
getTimestampin interfaceVersions
-
pull
public void pull() -
push
public void push() -
setOrigin
-
getOrigin
-
fetch
public void fetch() -
setUpstream
- Specified by:
setUpstreamin interfaceOrigins
-
getUpstream
- Specified by:
getUpstreamin interfaceOrigins
-
reset
public void reset() -
commit
public void commit() -
getRoot
- Specified by:
getRootin interfaceGitDirectory
-
getDirectory
public io.github.zebin.javabash.sandbox.DirectoryTree getDirectory()- Specified by:
getDirectoryin interfaceGitDirectory
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-