Class ConfigVersions
java.lang.Object
io.github.andreyzebin.gitSql.config.ConfigVersions
- All Implemented Interfaces:
ConfigHistory,AutoCloseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.github.andreyzebin.gitSql.config.ConfigHistory
ConfigHistory.Change<T>, ConfigHistory.PropertiesVersion -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()deleteProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key) getEffectiveProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key) getEffectiveProperty(String hash, io.github.zebin.javabash.sandbox.PosixPath leaf, String key) getEffectivePropertyKeys(io.github.zebin.javabash.sandbox.PosixPath leaf) getEffectivePropertyKeys(String hash, io.github.zebin.javabash.sandbox.PosixPath leaf) Stream<io.github.zebin.javabash.sandbox.PosixPath>getLeafs()static longbooleanpull()voidpush()setProperty(io.github.zebin.javabash.sandbox.PosixPath leaf, String key, String value) static longtoEpochSeconds(String timestamp) 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.config.ConfigHistory
bottomVersion, getEffectiveChanges, getEffectiveState, getExplodedChanges, getExplodedLeafChanges, getExplodedState, topVersion
-
Field Details
-
IO_GITHUB_VEZUVIO
- See Also:
-
DEFAULT_LOCK_TIMEOUT_SEC
public static final long DEFAULT_LOCK_TIMEOUT_SEC- See Also:
-
-
Constructor Details
-
ConfigVersions
-
-
Method Details
-
pull
public boolean pull() -
getGitAPI
-
getEffectiveProperty
public String getEffectiveProperty(String hash, io.github.zebin.javabash.sandbox.PosixPath leaf, String key) - Specified by:
getEffectivePropertyin interfaceConfigHistory
-
getExplodedPropertyKeys
public Set<Map.Entry<io.github.zebin.javabash.sandbox.PosixPath,String>> getExplodedPropertyKeys(String hash) - Specified by:
getExplodedPropertyKeysin interfaceConfigHistory
-
setProperty
-
deleteProperty
-
getEffectiveProperty
-
getEffectivePropertyKeys
-
getEffectivePropertyKeys
public Set<String> getEffectivePropertyKeys(String hash, io.github.zebin.javabash.sandbox.PosixPath leaf) - Specified by:
getEffectivePropertyKeysin interfaceConfigHistory
-
getLeafs
-
listVersions
- Specified by:
listVersionsin interfaceConfigHistory
-
toEpochSeconds
-
getNowEpochSec
public static long getNowEpochSec() -
commit
public void commit() -
push
public void push() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-