.getStatsCollector(statsCollectorName),
maxScnReaderWriters);
} else if (uri.startsWith("mock")) {
// Get all relevant pConfig attributes
//TODO add real instantiation
EventProducerServiceProvider mockProvider = _producersRegistry.getEventProducerServiceProvider("mock");
if (null == mockProvider)
{
throw new DatabusRuntimeException("relay event producer not available: " + "mock");
}
producer = mockProvider.createProducer(pConfig, schemaRegistryService,
dbusEventBuffer,
_inBoundStatsCollectors
.getStatsCollector(statsCollectorName),
maxScnReaderWriters);
} else if (uri.startsWith("gg:")){
producer = new GoldenGateEventProducer(pConfig,
schemaRegistryService,
dbusEventBuffer,
_inBoundStatsCollectors
.getStatsCollector(statsCollectorName),
maxScnReaderWriters);
} else if (uri.startsWith("mysql:")){
LOG.info("Adding OpenReplicatorEventProducer for uri :" + uri);
final String serviceName = "or";
EventProducerServiceProvider orProvider = _producersRegistry.getEventProducerServiceProvider(serviceName);
if (null == orProvider)
{
throw new DatabusRuntimeException("relay event producer not available: " + serviceName);
}
producer = orProvider.createProducer(pConfig, schemaRegistryService,
dbusEventBuffer,
_inBoundStatsCollectors.getStatsCollector(statsCollectorName),
maxScnReaderWriters);
} else
{