Class RestPrometheusMetricReader
java.lang.Object
io.debezium.testing.system.tools.kafka.connectors.RestPrometheusMetricReader
- All Implemented Interfaces:
ConnectorMetricsReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwaitForDB2Snapshot(String connectorName) Waits until snapshot phase of given DB2 connector completesvoidwaitForMongoSnapshot(String connectorName) Waits until snapshot phase of given MongoDB connector completesvoidwaitForMySqlSnapshot(String connectorName) Waits until snapshot phase of given MySQL connector completesvoidwaitForOracleSnapshot(String connectorName) Waits until snapshot phase of given Oracle connector completesvoidwaitForPostgreSqlSnapshot(String connectorName) Waits until snapshot phase of given PostgreSQL connector completesvoidwaitForSnapshot(String connectorName, String metricName) Waits until Snapshot phase of given connector completesvoidwaitForSqlServerSnapshot(String connectorName) Waits until snapshot phase of given SQL Server connector completes
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
url
private final okhttp3.HttpUrl url
-
-
Constructor Details
-
RestPrometheusMetricReader
public RestPrometheusMetricReader(okhttp3.HttpUrl url)
-
-
Method Details
-
getMetrics
-
waitForSnapshot
Waits until Snapshot phase of given connector completes- Parameters:
connectorName- name of the connectmetricName- name of the metric used to determine the state
-
waitForMySqlSnapshot
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given MySQL connector completes- Specified by:
waitForMySqlSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForPostgreSqlSnapshot
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given PostgreSQL connector completes- Specified by:
waitForPostgreSqlSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForSqlServerSnapshot
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given SQL Server connector completes- Specified by:
waitForSqlServerSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForMongoSnapshot
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given MongoDB connector completes- Specified by:
waitForMongoSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForDB2Snapshot
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given DB2 connector completes- Specified by:
waitForDB2Snapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForOracleSnapshot
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given Oracle connector completes- Specified by:
waitForOracleSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-