Class ConfigVersions
java.lang.Object
io.github.andreyzebin.gitSql.config.ConfigVersions
- All Implemented Interfaces:
ConfigHistory,AutoCloseable
-
Nested Class Summary
Nested 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) getEffectiveState(String hash, io.github.zebin.javabash.sandbox.PosixPath leaf) Set<io.github.zebin.javabash.sandbox.PosixPath>getExplodedLeafChanges(String from, String to) getExplodedState(String hash) 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, getExplodedChanges, 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() -
commit
public void commit() -
push
public void push() -
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
-
getEffectiveState
public Map<String,String> getEffectiveState(String hash, io.github.zebin.javabash.sandbox.PosixPath leaf) - Specified by:
getEffectiveStatein interfaceConfigHistory
-
getExplodedLeafChanges
public Set<io.github.zebin.javabash.sandbox.PosixPath> getExplodedLeafChanges(String from, String to) - Specified by:
getExplodedLeafChangesin interfaceConfigHistory
-
getExplodedState
public Map<Map.Entry<io.github.zebin.javabash.sandbox.PosixPath,String>, getExplodedStateString> (String hash) - Specified by:
getExplodedStatein interfaceConfigHistory
-
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() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-