Class RestPrometheusMetricReader
- java.lang.Object
-
- io.debezium.testing.system.tools.kafka.connectors.RestPrometheusMetricReader
-
- All Implemented Interfaces:
ConnectorMetricsReader
public class RestPrometheusMetricReader extends Object implements ConnectorMetricsReader
-
-
Constructor Summary
Constructors Constructor Description RestPrometheusMetricReader(okhttp3.HttpUrl url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getMetrics()voidwaitForDB2Snapshot(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
-
-
-
Method Detail
-
waitForSnapshot
public void waitForSnapshot(String connectorName, String metricName)
Waits until Snapshot phase of given connector completes- Parameters:
connectorName- name of the connectmetricName- name of the metric used to determine the state
-
waitForMySqlSnapshot
public void waitForMySqlSnapshot(String connectorName)
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given MySQL connector completes- Specified by:
waitForMySqlSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForPostgreSqlSnapshot
public void waitForPostgreSqlSnapshot(String connectorName)
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given PostgreSQL connector completes- Specified by:
waitForPostgreSqlSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForSqlServerSnapshot
public void waitForSqlServerSnapshot(String connectorName)
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given SQL Server connector completes- Specified by:
waitForSqlServerSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForMongoSnapshot
public void waitForMongoSnapshot(String connectorName)
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given MongoDB connector completes- Specified by:
waitForMongoSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForDB2Snapshot
public void waitForDB2Snapshot(String connectorName)
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given DB2 connector completes- Specified by:
waitForDB2Snapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
waitForOracleSnapshot
public void waitForOracleSnapshot(String connectorName)
Description copied from interface:ConnectorMetricsReaderWaits until snapshot phase of given Oracle connector completes- Specified by:
waitForOracleSnapshotin interfaceConnectorMetricsReader- Parameters:
connectorName- connector name
-
-