@ApplicationScoped public class DebeziumServer extends Object
The entry point of the Quarkus-based standalone server. The server is configured via Quarkus/Microprofile Configuration sources and provides few out-of-the-box target implementations.
The implementation uses CDI to find all classes that implements DebeziumEngine.ChangeConsumer interface.
The candidate classes should be annotated with @Named annotation and should be Dependent.
The configuration option debezium.consumer provides a name of the consumer that should be used and the value
must match to exactly one of the implementation classes.
| Constructor and Description |
|---|
DebeziumServer() |
| Modifier and Type | Method and Description |
|---|---|
private void |
configToProperties(org.eclipse.microprofile.config.Config config,
Properties props,
String oldPrefix,
String newPrefix) |
(package private) DebeziumEngine.ChangeConsumer<?> |
getConsumer()
For test purposes only
|
private Class<?> |
getFormat(org.eclipse.microprofile.config.Config config,
String property) |
void |
start() |
void |
stop(io.quarkus.runtime.ShutdownEvent event) |
private static final org.slf4j.Logger LOGGER
private static final String PROP_PREFIX
private static final String PROP_SOURCE_PREFIX
private static final String PROP_SINK_PREFIX
private static final String PROP_FORMAT_PREFIX
private static final String PROP_TRANSFORMS_PREFIX
private static final String PROP_KEY_FORMAT_PREFIX
private static final String PROP_VALUE_FORMAT_PREFIX
private static final String PROP_TRANSFORMS
private static final String PROP_SINK_TYPE
private static final String PROP_KEY_FORMAT
private static final String PROP_VALUE_FORMAT
private static final String PROP_TERMINATION_WAIT
private static final String FORMAT_JSON
private static final String FORMAT_AVRO
private static final String FORMAT_PROTOBUF
private ExecutorService executor
@Inject javax.enterprise.inject.spi.BeanManager beanManager
@Inject @Liveness ConnectorLifecycle health
private javax.enterprise.inject.spi.Bean<DebeziumEngine.ChangeConsumer<ChangeEvent<Object,Object>>> consumerBean
private javax.enterprise.context.spi.CreationalContext<DebeziumEngine.ChangeConsumer<ChangeEvent<Object,Object>>> consumerBeanCreationalContext
private DebeziumEngine.ChangeConsumer<ChangeEvent<Object,Object>> consumer
private DebeziumEngine<?> engine
@PostConstruct public void start()
private void configToProperties(org.eclipse.microprofile.config.Config config,
Properties props,
String oldPrefix,
String newPrefix)
private Class<?> getFormat(org.eclipse.microprofile.config.Config config, String property)
public void stop(@Observes
io.quarkus.runtime.ShutdownEvent event)
DebeziumEngine.ChangeConsumer<?> getConsumer()
Copyright © 2020 JBoss by Red Hat. All rights reserved.