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
ApacheKafkaAdminConnector provides access to an Apache Kafka's Admin API.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseConnectorBase.ProtectedConnection
- 
Field SummaryFields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBaseconnectionBean, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap
- 
Constructor SummaryConstructorsConstructorDescriptionDefault Constructor used by the connector provider.
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.kafka.clients.admin.DescribeTopicsResultReturn details about each topicvoidFree up any resources held since the connector is no longer needed.Return the component description that is used by this connector in the audit log.Return the list of topics defined to the Apache Kafka server.Map<org.apache.kafka.common.MetricName,? extends org.apache.kafka.common.Metric> metrics()Return the metrics available from the Apache Kafka Server.voidsetAuditLog(AuditLog auditLog) Receive an audit log object that can be used to record audit log messages.voidstart()Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBasecombineConfigurationProperties, disconnectConnectors, equals, fromCanonicalToKebabCase, fromCanonicalToSnakeCase, fromKebabToCanonicalCase, fromSnakeToCanonicalCase, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getBooleanConfigurationProperty, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingEndpointAddress, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorclearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, refreshStatistics, setStatisticProperty, setStatisticTimestamp
- 
Constructor Details- 
ApacheKafkaAdminConnectorpublic ApacheKafkaAdminConnector()Default Constructor used by the connector provider.
 
- 
- 
Method Details- 
setAuditLogReceive 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:
- setAuditLogin interface- AuditLoggingComponent
- Parameters:
- auditLog- audit log object
 
- 
getConnectorComponentDescriptionReturn the component description that is used by this connector in the audit log.- Specified by:
- getConnectorComponentDescriptionin interface- AuditLoggingComponent
- Returns:
- id, name, description, wiki page URL.
 
- 
startIndicates that the connector is completely configured and can begin processing. This call can be used to register with non-blocking services.- Overrides:
- startin class- ConnectorBase
- Throws:
- ConnectorCheckedException- there is a problem within the connector.
- UserNotAuthorizedException- the connector was disconnected before/during start
 
- 
getTopicListReturn the list of topics defined to the Apache Kafka server.- Returns:
- set of topic names
- Throws:
- ConnectorCheckedException- unexpected exception
 
- 
metricsReturn the metrics available from the Apache Kafka Server.- Returns:
- map of metric definitions to metric values
 
- 
describeTopicspublic org.apache.kafka.clients.admin.DescribeTopicsResult describeTopics() throws ConnectorCheckedExceptionReturn details about each topic- Returns:
- topic details
- Throws:
- ConnectorCheckedException- problem accessing event broker
 
- 
disconnectFree up any resources held since the connector is no longer needed.- Overrides:
- disconnectin class- ConnectorBase
- Throws:
- ConnectorCheckedException- there is a problem within the connector.
 
 
-