Search in sources :

Example 1 with PhysicalSourceConfigBuilder

use of com.linkedin.databus.core.util.PhysicalSourceConfigBuilder in project databus by linkedin.

the class OracleRelayFactory method createRelay.

@Override
public HttpRelay createRelay() throws DatabusException {
    try {
        SchemaRegistryService schemaRegistry = _schemaRegistryFactory.createSchemaRegistry();
        HttpRelay.StaticConfig relayStaticConfig = _relayConfigBuilder.build();
        getSourcesIdNameRegistry().updateFromIdNamePairs(relayStaticConfig.getSourceIds());
        PhysicalSourceConfigBuilder psourceConfBuilder = new PhysicalSourceConfigBuilder(_physicalSourcesConfigFiles);
        return new HttpRelay(relayStaticConfig, psourceConfBuilder.build(), getSourcesIdNameRegistry(), schemaRegistry);
    } catch (IOException ioe) {
        throw new DatabusException("OracleRelay instantiation error: " + ioe.getMessage(), ioe);
    }
}
Also used : DatabusException(com.linkedin.databus2.core.DatabusException) HttpRelay(com.linkedin.databus.container.netty.HttpRelay) PhysicalSourceConfigBuilder(com.linkedin.databus.core.util.PhysicalSourceConfigBuilder) SchemaRegistryService(com.linkedin.databus2.schemas.SchemaRegistryService) IOException(java.io.IOException)

Aggregations

HttpRelay (com.linkedin.databus.container.netty.HttpRelay)1 PhysicalSourceConfigBuilder (com.linkedin.databus.core.util.PhysicalSourceConfigBuilder)1 DatabusException (com.linkedin.databus2.core.DatabusException)1 SchemaRegistryService (com.linkedin.databus2.schemas.SchemaRegistryService)1 IOException (java.io.IOException)1