use of com.questdb.net.ha.comsumer.JournalClientStateConsumer in project questdb by bluestreak01.
the class PartitionTest method syncSymbolTables.
private void syncSymbolTables() throws JournalNetworkException {
JournalClientStateProducer sp = new JournalClientStateProducer();
JournalClientStateConsumer sc = new JournalClientStateConsumer();
sp.write(channel, new IndexedJournal(0, slave));
sc.read(channel);
JournalSymbolTableProducer p = new JournalSymbolTableProducer(master);
JournalSymbolTableConsumer c = new JournalSymbolTableConsumer(slave);
p.configure(master.find(sc.getValue().getTxn(), sc.getValue().getTxPin()));
p.write(channel);
c.read(channel);
}
use of com.questdb.net.ha.comsumer.JournalClientStateConsumer in project questdb by bluestreak01.
the class AbstractJournalTest method setUp.
@Before
public void setUp() throws Exception {
origin = getFactory().writer(Quote.class, "origin");
slave = getFactory().writer(Quote.class, "slave");
master = getFactory().writer(Quote.class, "master");
journalClientStateProducer = new JournalClientStateProducer();
journalClientStateConsumer = new JournalClientStateConsumer();
this.masterReader = getFactory().reader(Quote.class, "master");
journalDeltaProducer = new JournalDeltaProducer(masterReader);
journalDeltaConsumer = new JournalDeltaConsumer(slave);
channel = new MockByteChannel();
}
Aggregations