use of org.voltcore.messaging.HostMessenger in project voltdb by VoltDB.
the class TestStateMachine method recoverSite.
public void recoverSite(int site) throws Exception {
HostMessenger.Config config = new HostMessenger.Config();
config.internalPort += site;
config.acceptor = criteria;
int clientPort = m_ports.next();
config.zkInterface = "127.0.0.1:" + clientPort;
m_siteIdToZKPort.put(site, clientPort);
config.networkThreads = 1;
HostMessenger hm = new HostMessenger(config, null);
hm.start();
MeshProber.prober(hm).waitForDetermination();
m_messengers.set(site, hm);
addStateMachinesFor(site);
}
Aggregations