use of io.prestosql.server.testing.TestingPrestoServerLauncherOptions.Catalog in project hetu-core by openlookeng.
the class TestingPrestoServerLauncher method run.
public void run() throws Exception {
try (TestingPrestoServer server = new TestingPrestoServer()) {
for (String pluginClass : options.getPluginClassNames()) {
Plugin plugin = (Plugin) Class.forName(pluginClass).getConstructor().newInstance();
server.installPlugin(plugin);
}
for (Catalog catalog : options.getCatalogs()) {
server.createCatalog(catalog.getCatalogName(), catalog.getConnectorName());
}
System.out.println(server.getAddress());
waitForInterruption();
}
}