public class CloudPubSubSourceConnector extends SourceConnector
A SourceConnector that writes messages to a specific topic in Apache Kafka.
Inheritance
java.lang.Object > org.apache.kafka.connect.connector.Connector > org.apache.kafka.connect.source.SourceConnector > CloudPubSubSourceConnectorStatic Fields
CPS_MAKE_ORDERING_KEY_ATTRIBUTE
public static final String CPS_MAKE_ORDERING_KEY_ATTRIBUTE
Type | Description |
String |
CPS_MAX_BATCH_SIZE_CONFIG
public static final String CPS_MAX_BATCH_SIZE_CONFIG
Type | Description |
String |
CPS_STREAMING_PULL_ENABLED
public static final String CPS_STREAMING_PULL_ENABLED
Type | Description |
String |
CPS_STREAMING_PULL_FLOW_CONTROL_BYTES
public static final String CPS_STREAMING_PULL_FLOW_CONTROL_BYTES
Type | Description |
String |
CPS_STREAMING_PULL_FLOW_CONTROL_MESSAGES
public static final String CPS_STREAMING_PULL_FLOW_CONTROL_MESSAGES
Type | Description |
String |
CPS_STREAMING_PULL_MAX_ACK_EXTENSION_MS
public static final String CPS_STREAMING_PULL_MAX_ACK_EXTENSION_MS
Type | Description |
String |
CPS_STREAMING_PULL_MAX_MS_PER_ACK_EXTENSION
public static final String CPS_STREAMING_PULL_MAX_MS_PER_ACK_EXTENSION
Type | Description |
String |
CPS_STREAMING_PULL_PARALLEL_STREAMS
public static final String CPS_STREAMING_PULL_PARALLEL_STREAMS
Type | Description |
String |
CPS_SUBSCRIPTION_CONFIG
public static final String CPS_SUBSCRIPTION_CONFIG
Type | Description |
String |
DEFAULT_CPS_MAX_BATCH_SIZE
public static final int DEFAULT_CPS_MAX_BATCH_SIZE
Type | Description |
int |
DEFAULT_KAFKA_PARTITIONS
public static final int DEFAULT_KAFKA_PARTITIONS
Type | Description |
int |
DEFAULT_KAFKA_PARTITION_SCHEME
public static final String DEFAULT_KAFKA_PARTITION_SCHEME
Type | Description |
String |
KAFKA_MESSAGE_KEY_CONFIG
public static final String KAFKA_MESSAGE_KEY_CONFIG
Type | Description |
String |
KAFKA_MESSAGE_TIMESTAMP_CONFIG
public static final String KAFKA_MESSAGE_TIMESTAMP_CONFIG
Type | Description |
String |
KAFKA_PARTITIONS_CONFIG
public static final String KAFKA_PARTITIONS_CONFIG
Type | Description |
String |
KAFKA_PARTITION_SCHEME_CONFIG
public static final String KAFKA_PARTITION_SCHEME_CONFIG
Type | Description |
String |
KAFKA_TOPIC_CONFIG
public static final String KAFKA_TOPIC_CONFIG
Type | Description |
String |
USE_KAFKA_HEADERS
public static final String USE_KAFKA_HEADERS
Type | Description |
String |
Constructors
CloudPubSubSourceConnector()
public CloudPubSubSourceConnector()
Methods
config()
public ConfigDef config()
Type | Description |
org.apache.kafka.common.config.ConfigDef |
org.apache.kafka.connect.connector.Connector.config()
start(Map<String,String> props)
public void start(Map<String,String> props)
Name | Description |
props | Map<String,String> |
org.apache.kafka.connect.connector.Connector.start(java.util.Map<java.lang.String,java.lang.String>)
stop()
public void stop()
org.apache.kafka.connect.connector.Connector.stop()
taskClass()
public Class<? extends Task> taskClass()
Type | Description |
Class<? extends org.apache.kafka.connect.connector.Task> |
org.apache.kafka.connect.connector.Connector.taskClass()
taskConfigs(int maxTasks)
public List<Map<String,String>> taskConfigs(int maxTasks)
Name | Description |
maxTasks | int |
Type | Description |
List<Map<String,String>> |
org.apache.kafka.connect.connector.Connector.taskConfigs(int)
verifySubscription(String cpsProject, String cpsSubscription, CredentialsProvider credentialsProvider)
public void verifySubscription(String cpsProject, String cpsSubscription, CredentialsProvider credentialsProvider)
Check whether the user provided Cloud Pub/Sub subscription name specified by #CPS_SUBSCRIPTION_CONFIG exists or not.
Name | Description |
cpsProject | String |
cpsSubscription | String |
credentialsProvider | CredentialsProvider |
version()
public String version()
Type | Description |
String |