Interface KafkaConnectController
-
- All Known Implementing Classes:
OcpKafkaConnectController
public interface KafkaConnectControllerControl over Kafka Connect cluster- Author:
- Jakub Cechacek
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeployConnector(String name, ConnectorConfigBuilder config)Deploys connectorvoiddestroy()Crashes Kafka Connectvoiddisable()Disables Kafka Connectokhttp3.HttpUrlgetApiURL()okhttp3.HttpUrlgetMetricsURL()booleanundeploy()Undeploy this Kafka connect clustervoidundeployConnector(String name)Undeploys connectorio.strimzi.api.kafka.model.KafkaConnectwaitForCluster()Waits for cluster to be availablevoidwaitForDB2Snapshot(String connectorName)voidwaitForMongoSnapshot(String connectorName)voidwaitForMySqlSnapshot(String connectorName)voidwaitForPostgreSqlSnapshot(String connectorName)voidwaitForSqlServerSnapshot(String connectorName)
-
-
-
Method Detail
-
disable
void disable()
Disables Kafka Connect
-
destroy
void destroy()
Crashes Kafka Connect
-
deployConnector
void deployConnector(String name, ConnectorConfigBuilder config) throws IOException, InterruptedException
Deploys connector- Parameters:
name- connector's nameconfig- connector's configuration- Throws:
IOExceptionInterruptedException
-
undeployConnector
void undeployConnector(String name) throws IOException
Undeploys connector- Parameters:
name- name of the connector- Throws:
IOException
-
getApiURL
okhttp3.HttpUrl getApiURL()
- Returns:
- url of KC http API
-
getMetricsURL
okhttp3.HttpUrl getMetricsURL()
- Returns:
- url of metrics endpoint
-
waitForCluster
io.strimzi.api.kafka.model.KafkaConnect waitForCluster() throws InterruptedExceptionWaits for cluster to be available- Throws:
InterruptedException
-
undeploy
boolean undeploy()
Undeploy this Kafka connect cluster- Returns:
- true on operation success
-
waitForMySqlSnapshot
void waitForMySqlSnapshot(String connectorName) throws IOException
- Throws:
IOException
-
waitForPostgreSqlSnapshot
void waitForPostgreSqlSnapshot(String connectorName) throws IOException
- Throws:
IOException
-
waitForSqlServerSnapshot
void waitForSqlServerSnapshot(String connectorName) throws IOException
- Throws:
IOException
-
waitForMongoSnapshot
void waitForMongoSnapshot(String connectorName) throws IOException
- Throws:
IOException
-
waitForDB2Snapshot
void waitForDB2Snapshot(String connectorName) throws IOException
- Throws:
IOException
-
-