private void checkPresentAndCheckCount(TransactionOutcome outcome, long count) { MetricName metricName = actual.getMetricName(outcome, ImmutableMap.of()); checkPresentAndCheckCount(metricName, count); }
private void checkPresentAndCheckCount(TransactionOutcome outcome, long count, TableReference tableReference) { MetricName metricName = actual.getMetricName(outcome, getTableReferenceTags(tableReference)); checkPresentAndCheckCount(metricName, count); }
public TransactionOutcomeMetricsAssert hasNoKnowledgeOf(TableReference tableReference) { assertMetricNotExists(actual.getMetricName( TransactionOutcome.READ_WRITE_CONFLICT, getTableReferenceTags(tableReference))); assertMetricNotExists(actual.getMetricName( TransactionOutcome.WRITE_WRITE_CONFLICT, getTableReferenceTags(tableReference))); return this; }
private Meter getMeter(TransactionOutcome outcome, Map<String, String> safeTags) { return metricsManager.getTaggedRegistry().meter( getMetricName(outcome, safeTags)); }
public TransactionOutcomeMetricsAssert hasPlaceholderWriteWriteConflictsSatisfying(LongConsumer assertion) { MetricName metricName = actual.getMetricName(TransactionOutcome.WRITE_WRITE_CONFLICT, getTableReferenceTags(LoggingArgs.PLACEHOLDER_TABLE_REFERENCE)); assertion.accept(taggedMetricRegistry.meter(metricName).getCount()); return this; }
private void checkPresentAndCheckCount(TransactionOutcome outcome, long count) { MetricName metricName = actual.getMetricName(outcome, ImmutableMap.of()); checkPresentAndCheckCount(metricName, count); }
public TransactionOutcomeMetricsAssert hasNoKnowledgeOf(TableReference tableReference) { assertMetricNotExists(actual.getMetricName( TransactionOutcome.READ_WRITE_CONFLICT, getTableReferenceTags(tableReference))); assertMetricNotExists(actual.getMetricName( TransactionOutcome.WRITE_WRITE_CONFLICT, getTableReferenceTags(tableReference))); return this; }
private Meter getMeter(TransactionOutcome outcome, Map<String, String> safeTags) { return metricsManager.getTaggedRegistry().meter( getMetricName(outcome, safeTags)); }
private void checkPresentAndCheckCount(TransactionOutcome outcome, long count, TableReference tableReference) { MetricName metricName = actual.getMetricName(outcome, getTableReferenceTags(tableReference)); checkPresentAndCheckCount(metricName, count); }
public TransactionOutcomeMetricsAssert hasPlaceholderWriteWriteConflictsSatisfying(LongConsumer assertion) { MetricName metricName = actual.getMetricName(TransactionOutcome.WRITE_WRITE_CONFLICT, getTableReferenceTags(LoggingArgs.PLACEHOLDER_TABLE_REFERENCE)); assertion.accept(taggedMetricRegistry.meter(metricName).getCount()); return this; }