Package org.apache.camel.kafkaconnector
Class CamelSinkTask
- java.lang.Object
-
- org.apache.kafka.connect.sink.SinkTask
-
- org.apache.camel.kafkaconnector.CamelSinkTask
-
- All Implemented Interfaces:
org.apache.kafka.connect.connector.Task
public class CamelSinkTask extends org.apache.kafka.connect.sink.SinkTask
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEADER_CAMEL_PREFIXstatic StringKAFKA_RECORD_KEY_HEADERstatic StringKAMELET_SINK_TEMPLATE_PARAMETERS_PREFIXstatic StringPROPERTY_CAMEL_PREFIX
-
Constructor Summary
Constructors Constructor Description CamelSinkTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CamelSinkConnectorConfiggetCamelSinkConnectorConfig(Map<String,String> props)protected static StringgetCamelSinkEndpointConfigPrefix()protected static StringgetCamelSinkPathConfigPrefix()protected Map<String,String>getDefaultConfig()org.apache.camel.LoggingLevelgetLoggingLevel()protected StringgetSinkKamelet()voidput(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords)voidsetLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)voidstart(Map<String,String> props)voidstop()Stringversion()
-
-
-
Field Detail
-
KAMELET_SINK_TEMPLATE_PARAMETERS_PREFIX
public static final String KAMELET_SINK_TEMPLATE_PARAMETERS_PREFIX
- See Also:
- Constant Field Values
-
KAFKA_RECORD_KEY_HEADER
public static final String KAFKA_RECORD_KEY_HEADER
- See Also:
- Constant Field Values
-
HEADER_CAMEL_PREFIX
public static final String HEADER_CAMEL_PREFIX
- See Also:
- Constant Field Values
-
PROPERTY_CAMEL_PREFIX
public static final String PROPERTY_CAMEL_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
version
public String version()
-
start
public void start(Map<String,String> props)
- Specified by:
startin interfaceorg.apache.kafka.connect.connector.Task- Specified by:
startin classorg.apache.kafka.connect.sink.SinkTask
-
getSinkKamelet
protected String getSinkKamelet()
-
getCamelSinkConnectorConfig
protected CamelSinkConnectorConfig getCamelSinkConnectorConfig(Map<String,String> props)
-
getCamelSinkEndpointConfigPrefix
protected static String getCamelSinkEndpointConfigPrefix()
-
getCamelSinkPathConfigPrefix
protected static String getCamelSinkPathConfigPrefix()
-
put
public void put(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords)
- Specified by:
putin classorg.apache.kafka.connect.sink.SinkTask
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.kafka.connect.connector.Task- Specified by:
stopin classorg.apache.kafka.connect.sink.SinkTask
-
getLoggingLevel
public org.apache.camel.LoggingLevel getLoggingLevel()
-
setLoggingLevel
public void setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
-
-