Interface KafkaConnectController
-
- All Known Implementing Classes:
DockerKafkaConnectController,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(ConnectorConfigBuilder config)Deploys connectorvoiddestroy()Crashes Kafka Connectvoiddisable()Disables Kafka Connectokhttp3.HttpUrlgetApiURL()ConnectorMetricsReadergetMetricsReader()voidrestore()booleanundeploy()Undeploy this Kafka connect clustervoidundeployConnector(String name)Undeploys connectorvoidwaitForCluster()Waits for cluster to be available
-
-
-
Method Detail
-
disable
void disable()
Disables Kafka Connect
-
destroy
void destroy()
Crashes Kafka Connect
-
restore
void restore() throws InterruptedException- Throws:
InterruptedException
-
deployConnector
void deployConnector(ConnectorConfigBuilder config) throws IOException, InterruptedException
Deploys connector- Parameters:
config- 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
-
waitForCluster
void waitForCluster() throws InterruptedExceptionWaits for cluster to be available- Throws:
InterruptedException
-
undeploy
boolean undeploy()
Undeploy this Kafka connect cluster- Returns:
- true on operation success
-
getMetricsReader
ConnectorMetricsReader getMetricsReader()
- Returns:
- metrics reader for this kafka connect
-
-