Package io.odysz.semantic.syn
Class Docheck
java.lang.Object
io.odysz.semantic.syn.Docheck
Checker of each Synode.
- Author:
- Ody
-
Field Summary
Modifier and TypeFieldDescriptionstatic io.odysz.common.IAssert
final DATranscxt
static Docheck[]
final SyntityMeta
device metastatic final String
final DBSyntableBuilder
-
Constructor Summary
ConstructorDescriptionDocheck
(io.odysz.common.IAssert assertImpl, SyndomContext x, ExpDocTableMeta docm, SyntityMeta devm) Docheck
(io.odysz.common.IAssert assertImpl, String domain, String conn, String synid, SynodeMode mod, ExpDocTableMeta m, SyntityMeta devm, boolean debugx) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertl
(long... n) static void
assertnv
(long... nvs) Assert ai = bi, where ai, bi in nvs [a0, a1, ..., b0, b1, ...].static void
long
buf_change
(int count, String crud, String eid, SyntityMeta entm) Verify change flag, crud, where tabl = entm.tbl, entity-id = eid.long
buf_change
(int count, String crud, String synoder, String eid, SyntityMeta entm) long
buf_change_p
(int count, String crud, String eid) long
change_doclog
(int count, String crud, String eid) long
change_doclog
(int count, String crud, String synoder, String eid) long
change_log
(int count, String crud, String synoder, String eid, SyntityMeta entm) long
change_log_uids
(int count, String crud, String synoder, String uids, SyntityMeta entm) long
changelog
(int count, String crud, String eid, SyntityMeta entm) long
changelog
(int count, String crud, String synoder, String eid, SyntityMeta entm) int
devs()
Countdevm
's table records.void
Check doc count.doclist
(SyntityMeta entm) int
docs()
Countdocm
's table records.n0()
void
popDebug()
static void
printChangeLines
(Docheck[] ck) printNyquv
(Docheck[] ck, boolean... printSynode) void
verify h_photos' subscription.static void
Push connection's debug flags and return a checker instance.long
stamp()
void
subsCount
(SyntityMeta entm, int subcount, String chgId, String... toIds) void
synodes
(int... nx) Verify all synodes information here are as expected.void
void
verifile
(String synoder, String clientpath, ExpDocTableMeta docm) Verify if and only if one instance exists on this node.
-
Field Details
-
azert
public static io.odysz.common.IAssert azert -
org
- See Also:
-
ck
-
docm
-
synb
-
b0
-
sessionUsr
-
devm
device meta
-
-
Constructor Details
-
Docheck
public Docheck(io.odysz.common.IAssert assertImpl, String domain, String conn, String synid, SynodeMode mod, ExpDocTableMeta m, SyntityMeta devm, boolean debugx) throws Exception - Throws:
Exception
-
Docheck
public Docheck(io.odysz.common.IAssert assertImpl, SyndomContext x, ExpDocTableMeta docm, SyntityMeta devm) throws Exception - Throws:
Exception
-
-
Method Details
-
docs
Countdocm
's table records.- Throws:
SQLException
io.odysz.transact.x.TransException
-
devs
Countdevm
's table records.- Throws:
SQLException
io.odysz.transact.x.TransException
-
doclist
- Throws:
SQLException
io.odysz.transact.x.TransException
-
synodes
Verify all synodes information here are as expected.- Parameters:
nx
- ck index- Throws:
io.odysz.transact.x.TransException
SQLException
-
doc
public void doc(int count, String... synids) throws io.odysz.transact.x.TransException, SQLException Check doc count.- Parameters:
count
-synids
-- Throws:
io.odysz.transact.x.TransException
SQLException
-
buf_change
public long buf_change(int count, String crud, String eid, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException Verify change flag, crud, where tabl = entm.tbl, entity-id = eid.- Parameters:
count
-crud
- flag to be verifiedeid
- entity identm
- entity table meta- Returns:
- nyquence.n
- Throws:
io.odysz.transact.x.TransException
SQLException
-
buf_change_p
public long buf_change_p(int count, String crud, String eid) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
change_doclog
public long change_doclog(int count, String crud, String eid) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
change_doclog
public long change_doclog(int count, String crud, String synoder, String eid) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
change_log
public long change_log(int count, String crud, String synoder, String eid, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
change_log_uids
public long change_log_uids(int count, String crud, String synoder, String uids, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
buf_change
public long buf_change(int count, String crud, String synoder, String eid, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
changelog
public long changelog(int count, String crud, String eid, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
changelog
public long changelog(int count, String crud, String synoder, String eid, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
psubs
public void psubs(int subcount, String chgid, int... sub) throws SQLException, io.odysz.transact.x.TransException verify h_photos' subscription.- Parameters:
chgid
-sub
- subscriptions for X/Y/Z/W, -1 if not exists- Throws:
SQLException
io.odysz.transact.x.TransException
-
synsubs
public void synsubs(int subcount, String uids, int... sub) throws SQLException, io.odysz.transact.x.TransException - Throws:
SQLException
io.odysz.transact.x.TransException
-
subsCount
public void subsCount(SyntityMeta entm, int subcount, String chgId, String... toIds) throws SQLException, io.odysz.transact.x.TransException - Throws:
SQLException
io.odysz.transact.x.TransException
-
verifile
Verify if and only if one instance exists on this node.- Parameters:
synoder
-clientpath
-
-
printNyquv
public static HashMap<String,Nyquence>[] printNyquv(Docheck[] ck, boolean... printSynode) throws SQLException, io.odysz.transact.x.TransException - Throws:
SQLException
io.odysz.transact.x.TransException
-
printChangeLines
public static void printChangeLines(Docheck[] ck) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
assertnv
public static void assertnv(long... nvs) Assert ai = bi, where ai, bi in nvs [a0, a1, ..., b0, b1, ...].- Parameters:
nvs
-
-
assertI
public static void assertI(Docheck[] ck, HashMap<?, ?>[] nvs) throws SQLException, io.odysz.transact.x.TransException- Throws:
SQLException
io.odysz.transact.x.TransException
-
n0
- Throws:
SQLException
io.odysz.transact.x.TransException
-
assertnv
-
stamp
- Throws:
SQLException
io.odysz.transact.x.TransException
-
pushDebug
Push connection's debug flags and return a checker instance.
Example:pushDebug() .assertl( expect1, loadNyquvect(actual1), // logging suppressed expect2, loadNyquvect(actual2), // logging suppressed ...) .popDebug(); // logging restored
- Throws:
Exception
-
assertl
-
popDebug
public void popDebug()
-