Search in sources :

Example 1 with ServerContainer

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();
}
Also used : PhysicalSourceStaticConfig(com.linkedin.databus2.relay.config.PhysicalSourceStaticConfig) HttpRelay(com.linkedin.databus.container.netty.HttpRelay) DatabusRelayMain(com.linkedin.databus2.relay.DatabusRelayMain)

Aggregations

HttpRelay (com.linkedin.databus.container.netty.HttpRelay)1 DatabusRelayMain (com.linkedin.databus2.relay.DatabusRelayMain)1 PhysicalSourceStaticConfig (com.linkedin.databus2.relay.config.PhysicalSourceStaticConfig)1