io.github.jaredpetersen.kafkaconnectarangodb.sink.ArangoDbSinkConnector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-connect-arangodb Show documentation
Show all versions of kafka-connect-arangodb Show documentation
Kafka Connect Sink Connector for ArangoDB
package io.github.jaredpetersen.kafkaconnectarangodb.sink;
import io.github.jaredpetersen.kafkaconnectarangodb.sink.config.ArangoDbSinkConfig;
import io.github.jaredpetersen.kafkaconnectarangodb.util.PropertiesLoader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.kafka.common.config.ConfigDef;
import org.apache.kafka.connect.connector.Task;
import org.apache.kafka.connect.sink.SinkConnector;
/**
* Entry point for Kafka Connect ArangoDB Sink.
*/
public class ArangoDbSinkConnector extends SinkConnector {
private Map config;
@Override
public final String version() {
return PropertiesLoader.load().getProperty("version");
}
@Override
public final void start(final Map props) {
this.config = props;
}
@Override
public final Class extends Task> taskClass() {
return ArangoDbSinkTask.class;
}
@Override
public final List