public TransactionOutcomeMetricsAssert hasPlaceholderReadWriteConflicts(long count) { checkPresentAndCheckCount( TransactionOutcome.READ_WRITE_CONFLICT, count, LoggingArgs.PLACEHOLDER_TABLE_REFERENCE); return this; }
public TransactionOutcomeMetricsAssert hasPlaceholderWriteWriteConflicts(long count) { checkPresentAndCheckCount( TransactionOutcome.WRITE_WRITE_CONFLICT, count, LoggingArgs.PLACEHOLDER_TABLE_REFERENCE); return this; }
public TransactionOutcomeMetricsAssert hasAborts(long count) { checkPresentAndCheckCount(TransactionOutcome.ABORT, count); return this; }
public TransactionOutcomeMetricsAssert hasSuccessfulCommits(long count) { checkPresentAndCheckCount(TransactionOutcome.SUCCESSFUL_COMMIT, count); return this; }
public TransactionOutcomeMetricsAssert hasNamedReadWriteConflicts(TableReference tableReference, long count) { checkPresentAndCheckCount(TransactionOutcome.READ_WRITE_CONFLICT, count, tableReference); return this; }
public TransactionOutcomeMetricsAssert hasLocksExpired(long count) { checkPresentAndCheckCount(TransactionOutcome.LOCKS_EXPIRED, count); return this; }
public TransactionOutcomeMetricsAssert hasPreCommitCheckFailures(long count) { checkPresentAndCheckCount(TransactionOutcome.PRE_COMMIT_CHECK_FAILED, count); return this; }
public TransactionOutcomeMetricsAssert hasFailedCommits(long count) { checkPresentAndCheckCount(TransactionOutcome.FAILED_COMMIT, count); return this; }
public TransactionOutcomeMetricsAssert hasRollbackOther(long count) { checkPresentAndCheckCount(TransactionOutcome.ROLLBACK_OTHER, count); return this; }
public TransactionOutcomeMetricsAssert hasPutUnlessExistsFailures(long count) { checkPresentAndCheckCount(TransactionOutcome.PUT_UNLESS_EXISTS_FAILED, count); return this; }
public TransactionOutcomeMetricsAssert hasNamedWriteWriteConflicts(TableReference tableReference, long count) { checkPresentAndCheckCount(TransactionOutcome.WRITE_WRITE_CONFLICT, count, tableReference); return this; }
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 hasPlaceholderWriteWriteConflicts(long count) { checkPresentAndCheckCount( TransactionOutcome.WRITE_WRITE_CONFLICT, count, LoggingArgs.PLACEHOLDER_TABLE_REFERENCE); return this; }
public TransactionOutcomeMetricsAssert hasPutUnlessExistsFailures(long count) { checkPresentAndCheckCount(TransactionOutcome.PUT_UNLESS_EXISTS_FAILED, count); return this; }
public TransactionOutcomeMetricsAssert hasPlaceholderReadWriteConflicts(long count) { checkPresentAndCheckCount( TransactionOutcome.READ_WRITE_CONFLICT, count, LoggingArgs.PLACEHOLDER_TABLE_REFERENCE); return this; }
public TransactionOutcomeMetricsAssert hasFailedCommits(long count) { checkPresentAndCheckCount(TransactionOutcome.FAILED_COMMIT, count); return this; }
public TransactionOutcomeMetricsAssert hasRollbackOther(long count) { checkPresentAndCheckCount(TransactionOutcome.ROLLBACK_OTHER, count); return this; }
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); }