Class CamelKafkaConnectMain
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.main.BaseMainSupport
-
- org.apache.camel.main.SimpleMain
-
- org.apache.camel.kafkaconnector.utils.CamelKafkaConnectMain
-
public class CamelKafkaConnectMain extends org.apache.camel.main.SimpleMain
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCamelKafkaConnectMain.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringCAMEL_DATAFORMAT_PROPERTIES_PREFIXprotected org.apache.camel.ConsumerTemplateconsumerTemplateprotected org.apache.camel.ProducerTemplateproducerTemplate-
Fields inherited from class org.apache.camel.main.BaseMainSupport
camelContext, DEFAULT_PROPERTY_PLACEHOLDER_LOCATION, defaultPropertyPlaceholderLocation, INITIAL_PROPERTIES_LOCATION, initialProperties, listeners, mainConfigurationProperties, OVERRIDE_PROPERTIES_LOCATION, overrideProperties, PROPERTY_PLACEHOLDER_LOCATION, propertyPlaceholderLocations, routesCollector, wildcardProperties
-
-
Constructor Summary
Constructors Constructor Description CamelKafkaConnectMain(org.apache.camel.CamelContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CamelKafkaConnectMain.Builderbuilder(String from, String to)protected voiddoStop()org.apache.camel.ConsumerTemplategetConsumerTemplate()org.apache.camel.ProducerTemplategetProducerTemplate()-
Methods inherited from class org.apache.camel.main.BaseMainSupport
addInitialProperty, addMainListener, addOverrideProperty, addProperty, autoConfigurationFailFast, autoConfigurationFromProperties, autoConfigurationMainConfiguration, autoConfigurationPropertiesComponent, autoconfigure, autowireWildcardProperties, configure, configureLifecycle, configurePropertiesService, configureRoutes, configureStartupRecorder, doAutowireWildcardProperties, doConfigureCamelContextFromMainConfiguration, getCamelContext, getDefaultPropertyPlaceholderLocation, getInitialProperties, getOverrideProperties, getPropertyPlaceholderLocations, getRoutesCollector, isAutoConfigurationEnabled, loadConfigurations, postProcessCamelContext, removeMainListener, setAutoConfigurationEnabled, setDefaultPropertyPlaceholderLocation, setInitialProperties, setInitialProperties, setOverrideProperties, setOverrideProperties, setPropertyPlaceholderLocations, setRoutesCollector
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
-
-
-
Field Detail
-
CAMEL_DATAFORMAT_PROPERTIES_PREFIX
public static final String CAMEL_DATAFORMAT_PROPERTIES_PREFIX
- See Also:
- Constant Field Values
-
consumerTemplate
protected volatile org.apache.camel.ConsumerTemplate consumerTemplate
-
producerTemplate
protected volatile org.apache.camel.ProducerTemplate producerTemplate
-
-
Method Detail
-
doStop
protected void doStop() throws Exception- Overrides:
doStopin classorg.apache.camel.main.SimpleMain- Throws:
Exception
-
getProducerTemplate
public org.apache.camel.ProducerTemplate getProducerTemplate()
-
getConsumerTemplate
public org.apache.camel.ConsumerTemplate getConsumerTemplate()
-
builder
public static CamelKafkaConnectMain.Builder builder(String from, String to)
-
-