Modifier and Type | Field and Description |
---|---|
AnResultset |
answerPage |
int |
answerSeq |
int |
challengeSeq
Challenging sequence number, i.
|
protected int |
chsize
challenge page size
|
int |
expAnswerSeq |
String[] |
ssinf
Information used by upper level, such as semantic.jser.
|
int |
totalChallenges
Counted when in
init() , not correct after DBSyntableBuilder.cleanStale(HashMap, String) has been called. |
DBSyntableBuilder |
trb |
Constructor and Description |
---|
ExessionPersist(DBSyntableBuilder tb,
String target)
Create context at client side.
|
ExessionPersist(DBSyntableBuilder tb,
String peer,
ExchangeBlock ini)
Create context at server side.
|
Modifier and Type | Method and Description |
---|---|
ExchangeBlock |
abortExchange() |
void |
clear() |
ExchangeBlock |
closexchange(ExchangeBlock rep) |
ExessionPersist |
entities(String tbl,
AnResultset ents) |
ExessionPersist |
expect(ExchangeBlock req) |
ExessionAct |
exstat() |
int |
exstate() |
ExessionPersist |
exstate(int state) |
boolean |
hasNextChpages(DBSyntableBuilder b)
Has another page in
SynchangeBuffMeta .tbl to be send to. |
ExchangeBlock |
init()
Setup exchange buffer table.
|
ExchangeBlock |
nextExchange(ExchangeBlock rep) |
ExchangeBlock |
onInit(ExchangeBlock ini)
insert into exchanges select * from change_logs where n > nyquvect[sx.peer].n
|
int |
pages() |
ExessionPersist |
persisession()
update syn_node set session = {session, challengeSeq, answers, ...}
|
ExessionPersist |
persistarting(String peer)
Save starting session.
|
ExchangeBlock |
retryLast(String peer)
Retry last page
|
String |
session() |
ExchangeBlock |
signup(String admin) |
public AnResultset answerPage
public DBSyntableBuilder trb
public int totalChallenges
init()
, not correct after DBSyntableBuilder.cleanStale(HashMap, String)
has been called.public int expAnswerSeq
public int challengeSeq
protected int chsize
public int answerSeq
public String[] ssinf
public ExessionPersist(DBSyntableBuilder tb, String target)
tb
- chgm
- localtb
- local transaction buildertarget
- exbm
- subm
- builder
- public ExessionPersist(DBSyntableBuilder tb, String peer, ExchangeBlock ini)
tb
- session
- session id supplied by clientchgm
- localtb
- target
- public ExchangeBlock signup(String admin)
public ExchangeBlock init() throws io.odysz.transact.x.TransException, SQLException
exstate.state = init; expAnswerSeq = 0; challengeSeq = 0; answerSeq = 0;
i
- io.odysz.transact.x.TransException
SQLException
SemanticException
public ExchangeBlock onInit(ExchangeBlock ini) throws io.odysz.transact.x.TransException, SQLException
ini
- io.odysz.transact.x.TransException
SQLException
public void clear()
public String session()
public int exstate()
public ExessionPersist exstate(int state)
public ExessionAct exstat()
public boolean hasNextChpages(DBSyntableBuilder b) throws SQLException, io.odysz.transact.x.TransException
SynchangeBuffMeta
.tbl to be send to.b
- synchronizing transaction builderSQLException
io.odysz.transact.x.TransException
public ExessionPersist expect(ExchangeBlock req) throws ExchangeException
ExchangeException
public ExchangeBlock nextExchange(ExchangeBlock rep) throws SQLException, io.odysz.transact.x.TransException
SQLException
io.odysz.transact.x.TransException
public ExchangeBlock closexchange(ExchangeBlock rep) throws ExchangeException
ExchangeException
public ExchangeBlock abortExchange()
public ExchangeBlock retryLast(String peer) throws io.odysz.transact.x.TransException, SQLException
peer
- SQLException
io.odysz.transact.x.TransException
public ExessionPersist entities(String tbl, AnResultset ents)
public int pages()
public ExessionPersist persisession() throws io.odysz.transact.x.TransException, SQLException
SQLException
io.odysz.transact.x.TransException
public ExessionPersist persistarting(String peer) throws io.odysz.transact.x.TransException, SQLException
peer
- io.odysz.transact.x.TransException
SQLException
Copyright © 2024. All rights reserved.