Class GetConnectorTopics
java.lang.Object
org.sourcelab.kafka.connect.apiclient.request.get.GetConnectorTopics
- All Implemented Interfaces:
GetRequest<ConnectorTopics>,Request<ConnectorTopics>
Returns a list of connector topic names.
There is no defined order in which the topics are returned and consecutive calls may return the same topic names
but in different order. This request is independent of whether a connector is running, and will return an empty set
of topics, both for connectors that don’t have active topics as well as non-existent connectors.
https://docs.confluent.io/current/connect/references/restapi.html#get--connectors-(string-name)-topics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the API end point to issue a request against.parseResponse(String responseStr) Parse the rest service's response into a concrete object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sourcelab.kafka.connect.apiclient.request.get.GetRequest
getRequestBody, getRequestMethod
-
Constructor Details
-
GetConnectorTopics
Constructor.- Parameters:
connectorName- Name of connector.
-
-
Method Details
-
getApiEndpoint
Description copied from interface:RequestThe name of the API end point to issue a request against. This is appended to the API Hostname.- Specified by:
getApiEndpointin interfaceRequest<ConnectorTopics>- Returns:
- The name of the end point this request uses.
-
parseResponse
Description copied from interface:RequestParse the rest service's response into a concrete object.- Specified by:
parseResponsein interfaceRequest<ConnectorTopics>- Parameters:
responseStr- The servers response in string format.- Returns:
- A concrete object representing the result.
- Throws:
IOException- on parsing errors.
-