main.java.com.ibm.cloudant.kafka.connect.CloudantSourceTaskConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-connect-cloudant Show documentation
Show all versions of kafka-connect-cloudant Show documentation
Apache Kafka Connect API connector for Cloudant
The newest version!
/*******************************************************************************
* Copyright (c) 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package com.ibm.cloudant.kafka.connect;
import java.util.Map;
import org.apache.kafka.common.config.ConfigDef.Importance;
import org.apache.kafka.common.config.ConfigDef.Type;
import com.ibm.cloudant.kafka.common.InterfaceConst;
public class CloudantSourceTaskConfig extends CloudantSourceConnectorConfig {
// Expand this ConfigDef with task specific parameters
static org.apache.kafka.common.config.ConfigDef config = baseConfigDef()
.define(InterfaceConst.TASK_NUMBER,
Type.INT, InterfaceConst.DEFAULT_TASK_NUMBER, Importance.HIGH, InterfaceConst.TASK_NUMBER)
.define(InterfaceConst.TASKS_MAX,
Type.INT, InterfaceConst.DEFAULT_TASKS_MAX, Importance.LOW, InterfaceConst.TASKS_MAX)
.define(InterfaceConst.BATCH_SIZE,
Type.INT, InterfaceConst.DEFAULT_BATCH_SIZE, Importance.LOW, InterfaceConst.BATCH_SIZE);
public CloudantSourceTaskConfig(Map originals) {
super(config, originals);
}
}