Package io.odysz.semantic.syn
Class Docheck
java.lang.Object
io.odysz.semantic.syn.Docheck
Checker of each Synode.
- Author:
- Ody
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic io.odysz.common.IAssertfinal DATranscxtstatic Docheck[]final SyntityMetadevice metastatic final Stringfinal DBSyntableBuilder -
Constructor Summary
ConstructorsConstructorDescriptionDocheck(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 voidassertl(long... n) static voidassertnv(long... nvs) Assert ai = bi, where ai, bi in nvs [a0, a1, ..., b0, b1, ...].static voidlongbuf_change(int count, String crud, String eid, SyntityMeta entm) Verify change flag, crud, where tabl = entm.tbl, entity-id = eid.longbuf_change(int count, String crud, String synoder, String eid, SyntityMeta entm) longbuf_change_p(int count, String crud, String eid) longchange_doclog(int count, String crud, String eid) longchange_doclog(int count, String crud, String synoder, String eid) longchange_log(int count, String crud, String synoder, String eid, SyntityMeta entm) longchange_log_uids(int count, String crud, String synoder, String uids, SyntityMeta entm) longchangelog(int count, String crud, String eid, SyntityMeta entm) longchangelog(int count, String crud, String synoder, String eid, SyntityMeta entm) intdevs()Countdevm's table records.voidCheck doc count.doclist(SyntityMeta entm) intdocs()Countdocm's table records.n0()voidpopDebug()static voidprintChangeLines(Docheck[] ck) printNyquv(Docheck[] ck, boolean... printSynode) voidverify h_photos' subscription.static voidPush connection's debug flags and return a checker instance.longstamp()voidsubsCount(SyntityMeta entm, int subcount, String chgId, String... toIds) voidsynodes(int... nx) Verify all synodes information here are as expected.voidvoidverifile(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:
SQLExceptionio.odysz.transact.x.TransException
-
devs
Countdevm's table records.- Throws:
SQLExceptionio.odysz.transact.x.TransException
-
doclist
- Throws:
SQLExceptionio.odysz.transact.x.TransException
-
synodes
Verify all synodes information here are as expected.- Parameters:
nx- ck index- Throws:
io.odysz.transact.x.TransExceptionSQLException
-
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.TransExceptionSQLException
-
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.TransExceptionSQLException
-
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.TransExceptionSQLException
-
change_doclog
public long change_doclog(int count, String crud, String eid) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransExceptionSQLException
-
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.TransExceptionSQLException
-
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.TransExceptionSQLException
-
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.TransExceptionSQLException
-
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.TransExceptionSQLException
-
changelog
public long changelog(int count, String crud, String eid, SyntityMeta entm) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransExceptionSQLException
-
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.TransExceptionSQLException
-
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:
SQLExceptionio.odysz.transact.x.TransException
-
synsubs
public void synsubs(int subcount, String uids, int... sub) throws SQLException, io.odysz.transact.x.TransException - Throws:
SQLExceptionio.odysz.transact.x.TransException
-
subsCount
public void subsCount(SyntityMeta entm, int subcount, String chgId, String... toIds) throws SQLException, io.odysz.transact.x.TransException - Throws:
SQLExceptionio.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:
SQLExceptionio.odysz.transact.x.TransException
-
printChangeLines
public static void printChangeLines(Docheck[] ck) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransExceptionSQLException
-
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:
SQLExceptionio.odysz.transact.x.TransException
-
n0
- Throws:
SQLExceptionio.odysz.transact.x.TransException
-
assertnv
-
stamp
- Throws:
SQLExceptionio.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()
-