Class ConnectorsWithExpandedMetadata
java.lang.Object
org.sourcelab.kafka.connect.apiclient.request.dto.ConnectorsWithExpandedMetadata
- All Implemented Interfaces:
ConnectorsWithExpandedInfo,ConnectorsWithExpandedStatus
public class ConnectorsWithExpandedMetadata
extends Object
implements ConnectorsWithExpandedInfo, ConnectorsWithExpandedStatus
Deployed Connectors extended with all available associated Metadata.
Currently, this includes both 'info' and 'status' metadata.
Requires Kafka-Connect server 2.3.0+
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExpanded metadata included with the connector response. -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.ConnectorsWithExpandedMetadata(Map<String, ConnectorsWithExpandedMetadata.ConnectorWithExpandedMetadata> results) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionAll ConnectorDefinitions.All connector statuses.Names for all deployed connectors.getDefinitionForConnector(String connectorName) Given a connector name, return the definition for the connector.Map of ConnectorName to its respective ConnectorDefinition.Map of ConnectorName to its respective Status.getStatusForConnector(String connectorName) Given a connector name, return the status for the connector.toString()
-
Constructor Details
-
ConnectorsWithExpandedMetadata
public ConnectorsWithExpandedMetadata()Default Constructor. -
ConnectorsWithExpandedMetadata
public ConnectorsWithExpandedMetadata(Map<String, ConnectorsWithExpandedMetadata.ConnectorWithExpandedMetadata> results) Constructor.
-
-
Method Details
-
getConnectorNames
Description copied from interface:ConnectorsWithExpandedInfoNames for all deployed connectors.- Specified by:
getConnectorNamesin interfaceConnectorsWithExpandedInfo- Specified by:
getConnectorNamesin interfaceConnectorsWithExpandedStatus- Returns:
- Names of all deployed connectors.
-
getDefinitionForConnector
Description copied from interface:ConnectorsWithExpandedInfoGiven a connector name, return the definition for the connector.- Specified by:
getDefinitionForConnectorin interfaceConnectorsWithExpandedInfo- Parameters:
connectorName- name of connector to return definition for.- Returns:
- ConnectorDefinition for the given connector name.
-
getAllDefinitions
Description copied from interface:ConnectorsWithExpandedInfoAll ConnectorDefinitions.- Specified by:
getAllDefinitionsin interfaceConnectorsWithExpandedInfo- Returns:
- all ConnectorDefinitions.
-
getMappedDefinitions
Description copied from interface:ConnectorsWithExpandedInfoMap of ConnectorName to its respective ConnectorDefinition.- Specified by:
getMappedDefinitionsin interfaceConnectorsWithExpandedInfo- Returns:
- Map of ConnectorName to its respective ConnectorDefinition.
-
getStatusForConnector
Description copied from interface:ConnectorsWithExpandedStatusGiven a connector name, return the status for the connector.- Specified by:
getStatusForConnectorin interfaceConnectorsWithExpandedStatus- Parameters:
connectorName- name of connector to return status for.- Returns:
- ConnectorStatus for the given connector name.
-
getAllStatuses
Description copied from interface:ConnectorsWithExpandedStatusAll connector statuses.- Specified by:
getAllStatusesin interfaceConnectorsWithExpandedStatus- Returns:
- All connector statuses.
-
getMappedStatuses
Description copied from interface:ConnectorsWithExpandedStatusMap of ConnectorName to its respective Status.- Specified by:
getMappedStatusesin interfaceConnectorsWithExpandedStatus- Returns:
- Map of ConnectorName to its respective Status.
-
toString
-