Class ApacheKafkaAdminConnector

java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.adapters.connectors.apachekafka.resource.ApacheKafkaAdminConnector
All Implemented Interfaces:
AuditLoggingComponent, SecureConnectorExtension, VirtualConnectorExtension

public class ApacheKafkaAdminConnector extends ConnectorBase implements AuditLoggingComponent
ApacheKafkaAdminConnector provides access to an Apache Kafka's Admin API.
  • Constructor Details

    • ApacheKafkaAdminConnector

      public ApacheKafkaAdminConnector()
      Default Constructor used by the connector provider.
  • Method Details

    • setAuditLog

      public void setAuditLog(AuditLog auditLog)
      Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.
      Specified by:
      setAuditLog in interface AuditLoggingComponent
      Parameters:
      auditLog - audit log object
    • getConnectorComponentDescription

      public ComponentDescription getConnectorComponentDescription()
      Return the component description that is used by this connector in the audit log.
      Specified by:
      getConnectorComponentDescription in interface AuditLoggingComponent
      Returns:
      id, name, description, wiki page URL.
    • start

      public void start() throws ConnectorCheckedException
      Indicates that the connector is completely configured and can begin processing. This call can be used to register with non-blocking services.
      Overrides:
      start in class ConnectorBase
      Throws:
      ConnectorCheckedException - there is a problem within the connector.
    • getTopicList

      public Set<String> getTopicList() throws ConnectorCheckedException
      Return the list of topics defined to the Apache Kafka server.
      Returns:
      set of topic names
      Throws:
      ConnectorCheckedException - unexpected exception
    • metrics

      public Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> metrics()
      Return the metrics available from the Apache Kafka Server.
      Returns:
      map of metric definitions to metric values
    • describeTopics

      public org.apache.kafka.clients.admin.DescribeTopicsResult describeTopics() throws ConnectorCheckedException
      Return details about each topic
      Returns:
      topic details
      Throws:
      ConnectorCheckedException - problem accessing event broker
    • disconnect

      public void disconnect() throws ConnectorCheckedException
      Free up any resources held since the connector is no longer needed.
      Overrides:
      disconnect in class ConnectorBase
      Throws:
      ConnectorCheckedException - there is a problem within the connector.