本文整理匯總了Java中org.apache.kafka.connect.connector.Task類的典型用法代碼示例。如果您正苦於以下問題:Java Task類的具體用法?Java Task怎麽用?Java Task使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Task類屬於org.apache.kafka.connect.connector包,在下文中一共展示了Task類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: taskConfig
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
private static Map<String, String> taskConfig(SourceSink sourceSink) {
HashMap<String, String> generatedTaskProps = new HashMap<>();
// Connectors can add any settings, so these are arbitrary
generatedTaskProps.put("foo", "bar");
Class<? extends Task> taskClass = sourceSink == SourceSink.SINK ? BogusSinkTask.class : BogusSourceTask.class;
generatedTaskProps.put(TaskConfig.TASK_CLASS_CONFIG, taskClass.getName());
if (sourceSink == SourceSink.SINK)
generatedTaskProps.put(SinkTask.TOPICS_CONFIG, TOPICS_LIST_STR);
return generatedTaskProps;
}
示例2: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return GitHubSourceTask.class;
}
示例3: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return MarkLogicSinkTask.class;
}
示例4: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
/**
* Returns the Task implementation for this Connector.
*/
@Override public Class<? extends Task> taskClass() {
return MQSinkTask.class;
}
示例5: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
/**
* Returns the Task implementation for this Connector.
*/
@Override public Class<? extends Task> taskClass() {
return MQSourceTask.class;
}
示例6: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return CassandraSinkTask.class;
}
示例7: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return FsSourceTask.class;
}
示例8: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return HdfsSinkTask.class;
}
示例9: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return SchemaSourceTask.class;
}
示例10: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return MsSqlSourceTask.class;
}
示例11: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return RabbitMQSinkTask.class;
}
示例12: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return RabbitMQSourceTask.class;
}
示例13: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return FileStreamSourceTask.class;
}
示例14: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return FileStreamSinkTask.class;
}
示例15: taskClass
import org.apache.kafka.connect.connector.Task; //導入依賴的package包/類
@Override
public Class<? extends Task> taskClass() {
return InfinispanSinkTask.class;
}