All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.com.ibm.cloudant.kafka.connect.CloudantSinkTaskConfig Maven / Gradle / Ivy

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 CloudantSinkTaskConfig extends CloudantSinkConnectorConfig {

	// Expand this ConfigDef with task specific parameters	
	static org.apache.kafka.common.config.ConfigDef config = baseConfigDef()
		      .define(InterfaceConst.BATCH_SIZE, Type.INT, InterfaceConst.DEFAULT_BATCH_SIZE,
		    		  Importance.LOW, InterfaceConst.BATCH_SIZE)
		      .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.REPLICATION, Type.BOOLEAN, InterfaceConst.DEFAULT_REPLICATION,
		    		  Importance.LOW, InterfaceConst.REPLICATION);
	
	public CloudantSinkTaskConfig(Map originals) {
		super(config, originals);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy