Package io.odysz.semantic.syn
Class ExchangeContext
java.lang.Object
io.odysz.semantic.syn.ExchangeContext
Handling exchange session with remote node.
This is different from
DBSynmantext which is used for
handling local data integration and database semantics.- Author:
- Ody
-
Constructor Summary
ConstructorsConstructorDescriptionExchangeContext(SynChangeMeta chgm, String target) Create context at client side.ExchangeContext(String session, SynChangeMeta chgm, String target) Create context at server side. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnswer(AnResultset answer) voidbuffChanges(HashMap<String, Nyquence> myNyquvect, HashMap<String, Object[]> chcols, ArrayList<ArrayList<Object>> yourchallenges, HashMap<String, AnResultset> entities) Buffering changes while responding tochallenges.voidclear()voidinitChallenge(String target, ChangeLogs diff) session()
-
Constructor Details
-
ExchangeContext
Create context at client side.- Parameters:
chgm-target-
-
ExchangeContext
Create context at server side.- Parameters:
session- session id supplied by clientchgm-target-
-
-
Method Details
-
initChallenge
- Throws:
SemanticException
-
buffChanges
public void buffChanges(HashMap<String, Nyquence> myNyquvect, HashMap<String, throws SemanticExceptionObject[]> chcols, ArrayList<ArrayList<Object>> yourchallenges, HashMap<String, AnResultset> entities) Buffering changes while responding tochallenges.- Parameters:
myNyquvect-chcols-yourchallenges-entities-- Throws:
SemanticException
-
addAnswer
- Throws:
SemanticException
-
clear
- Throws:
SemanticException
-
session
-