Resource: Connector
A Kafka Connect connector in a given ConnectCluster.
JSON representation |
---|
{ "name": string, "configs": { string: string, ... }, "state": enum ( |
Fields | |
---|---|
name |
Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connectCluster}/connectors/{connector} |
configs |
Optional. Connector config as keys/values. The keys of the map are connector property names, for example: An object containing a list of |
state |
Output only. The current state of the connector. |
Union field restart_policy . A policy that specifies how to restart the failed connectors/tasks in a Cluster resource. If not set, the failed connectors/tasks won't be restarted. restart_policy can be only one of the following: |
|
taskRestartPolicy |
Optional. Restarts the individual tasks of a Connector. |
TaskRetryPolicy
Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. The default values for minimum and maximum backoffs are 60 seconds and 30 minutes respectively.
JSON representation |
---|
{ "minimumBackoff": string, "maximumBackoff": string } |
Fields | |
---|---|
minimumBackoff |
Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay. A duration in seconds with up to nine fractional digits, ending with ' |
maximumBackoff |
Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay. A duration in seconds with up to nine fractional digits, ending with ' |
State
The state of the connector.
Enums | |
---|---|
STATE_UNSPECIFIED |
A state was not specified. |
UNASSIGNED |
The connector is not assigned to any tasks, usually transient. |
RUNNING |
The connector is running. |
PAUSED |
The connector has been paused. |
FAILED |
The connector has failed. See logs for why. |
RESTARTING |
The connector is restarting. |
STOPPED |
The connector has been stopped. |
Methods |
|
---|---|
|
Creates a new connector in a given Connect cluster. |
|
Deletes a connector. |
|
Returns the properties of a single connector. |
|
Lists the connectors in a given Connect cluster. |
|
Updates the properties of a connector. |
|
Pauses the connector and its tasks. |
|
Restarts the connector. |
|
Resumes the connector and its tasks. |
|
Stops the connector. |