.put("config.ignore_system_properties", true)
.put("gateway.type", "none")).build();
node.start();
SQLService sqlService = node.injector().getInstance(SQLService.class);
TransportSQLAction transportSQLAction = node.injector().getInstance(TransportSQLAction.class);
transportSQLAction.execute(new SQLRequest("select name from sys.cluster")).actionGet();
sqlService.disable();
try {
transportSQLAction.execute(new SQLRequest("select name from sys.cluster")).actionGet();
fail("no exception thrown");
} catch (NodeDisconnectedException e) {
// success!
}
sqlService.start();
transportSQLAction.execute(new SQLRequest("select name from sys.cluster")).actionGet();
}