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);
}
}
Aggregations