Package io.permazen.jsck
Class Jsck
- java.lang.Object
-
- io.permazen.jsck.Jsck
-
public class Jsck extends Object
Applies consistency checks to, and optionally repairs corruption of, a Permazen key/value database.
-
-
Constructor Summary
Constructors Constructor Description Jsck(JsckConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
check(KVStore kv, Consumer<? super Issue> consumer)
Perform check.
-
-
-
Constructor Detail
-
Jsck
public Jsck(JsckConfig config)
-
-
Method Detail
-
check
public long check(KVStore kv, Consumer<? super Issue> consumer)
Perform check.- Parameters:
kv
- key/value databaseconsumer
- recipient of any issues found; or null for none- Returns:
- the number of issues encountered
- Throws:
IllegalArgumentException
- if database is not a Permazen database (i.e., no format version key)IllegalArgumentException
- if a forced schema version is invalidIllegalArgumentException
- if the database's recorded schemas are mutually inconsistent (requiring forced schema version overrides)
-
-