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 protected org.apache.camel.ConsumerTemplateconsumerTemplatestatic StringKAMELET_AGGREGATORL_TEMPLATE_PARAMETERS_PREFIXstatic StringKAMELET_IDEMPOTENT_TEMPLATE_PARAMETERS_PREFIXstatic StringKAMELET_MARSHAL_TEMPLATE_PARAMETERS_PREFIXstatic StringKAMELET_REMOVEHEADER_TEMPLATE_PARAMETERS_PREFIXstatic StringKAMELET_UNMARSHAL_TEMPLATE_PARAMETERS_PREFIXprotected org.apache.camel.ProducerTemplateproducerTemplate-
Fields inherited from class org.apache.camel.main.BaseMainSupport
camelContext, DEFAULT_PROPERTY_PLACEHOLDER_LOCATION, defaultPropertyPlaceholderLocation, helper, INITIAL_PROPERTIES_LOCATION, initialProperties, listeners, mainConfigurationProperties, OVERRIDE_PROPERTIES_LOCATION, overrideProperties, PROPERTY_PLACEHOLDER_LOCATION, propertyPlaceholderLocations, routesCollector, standalone, 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, autoConfigurationSingleOption, autoconfigure, autowireWildcardProperties, configure, configureLifecycle, configurePackageScan, configurePropertiesService, configureRoutes, configureRoutesLoader, configureStartupRecorder, doAutowireWildcardProperties, doConfigureCamelContextFromMainConfiguration, getCamelContext, getDefaultPropertyPlaceholderLocation, getInitialProperties, getOverrideProperties, getPropertyPlaceholderLocations, getRoutesCollector, loadConfigurations, modelineRoutes, postProcessCamelContext, removeMainListener, 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
-
KAMELET_MARSHAL_TEMPLATE_PARAMETERS_PREFIX
public static final String KAMELET_MARSHAL_TEMPLATE_PARAMETERS_PREFIX
- See Also:
- Constant Field Values
-
KAMELET_UNMARSHAL_TEMPLATE_PARAMETERS_PREFIX
public static final String KAMELET_UNMARSHAL_TEMPLATE_PARAMETERS_PREFIX
- See Also:
- Constant Field Values
-
KAMELET_AGGREGATORL_TEMPLATE_PARAMETERS_PREFIX
public static final String KAMELET_AGGREGATORL_TEMPLATE_PARAMETERS_PREFIX
- See Also:
- Constant Field Values
-
KAMELET_IDEMPOTENT_TEMPLATE_PARAMETERS_PREFIX
public static final String KAMELET_IDEMPOTENT_TEMPLATE_PARAMETERS_PREFIX
- See Also:
- Constant Field Values
-
KAMELET_REMOVEHEADER_TEMPLATE_PARAMETERS_PREFIX
public static final String KAMELET_REMOVEHEADER_TEMPLATE_PARAMETERS_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)
-
-