use of com.linkedin.databus2.core.container.netty.ServerContainer in project databus by linkedin.
the class PersonRelayServer method main.
public static void main(String[] args) throws Exception {
Cli cli = new Cli();
cli.setDefaultPhysicalSrcConfigFiles("conf/sources-person.json");
cli.processCommandLineArgs(args);
cli.parseRelayConfig();
// Process the startup properties and load configuration
PhysicalSourceStaticConfig[] pStaticConfigs = cli.getPhysicalSourceStaticConfigs();
HttpRelay.StaticConfig staticConfig = cli.getRelayConfigBuilder().build();
// Create and initialize the server instance
DatabusRelayMain serverContainer = new DatabusRelayMain(staticConfig, pStaticConfigs);
serverContainer.initProducers();
serverContainer.registerShutdownHook();
serverContainer.startAndBlock();
}
Aggregations