Interface ConnectorsWithExpandedInfo
- All Known Implementing Classes:
ConnectorsWithExpandedMetadata
public interface ConnectorsWithExpandedInfo
Deployed Connectors extended with their associated ConnectorDefinitions.
Requires Kafka-Connect server 2.3.0+
-
Method Summary
Modifier and Type Method Description Collection<ConnectorDefinition>getAllDefinitions()All ConnectorDefinitions.Collection<String>getConnectorNames()Names for all deployed connectors.ConnectorDefinitiongetDefinitionForConnector(String connectorName)Given a connector name, return the definition for the connector.Map<String,ConnectorDefinition>getMappedDefinitions()Map of ConnectorName to its respective ConnectorDefinition.
-
Method Details
-
getConnectorNames
Collection<String> getConnectorNames()Names for all deployed connectors.- Returns:
- Names of all deployed connectors.
-
getDefinitionForConnector
ConnectorDefinition getDefinitionForConnector(String connectorName) throws IllegalArgumentExceptionGiven a connector name, return the definition for the connector.- Parameters:
connectorName- name of connector to return definition for.- Returns:
- ConnectorDefinition for the given connector name.
- Throws:
IllegalArgumentException- if passed a connector name not included in the results.
-
getAllDefinitions
Collection<ConnectorDefinition> getAllDefinitions()All ConnectorDefinitions.- Returns:
- all ConnectorDefinitions.
-
getMappedDefinitions
Map<String,ConnectorDefinition> getMappedDefinitions()Map of ConnectorName to its respective ConnectorDefinition.- Returns:
- Map of ConnectorName to its respective ConnectorDefinition.
-