@Test public void testLastRepairedAt() throws IOException { TableReference tableReference = new TableReference("keyspace", "table"); TableReference tableReference2 = new TableReference("keyspace", "table2"); long expectedLastRepaired = 1234567890L; long expectedLastRepaired2 = 9876543210L; myTableRepairMetricsImpl.lastRepairedAt(tableReference, expectedLastRepaired); myTableRepairMetricsImpl.lastRepairedAt(tableReference2, expectedLastRepaired2); myTableRepairMetricsImpl.close(); double lastRepaired = getMetricValue(tableReference + "-LastRepairedAt.csv", 1); double lastRepaired2 = getMetricValue(tableReference2 + "-LastRepairedAt.csv", 1); assertThat(lastRepaired).isEqualTo(expectedLastRepaired); assertThat(lastRepaired2).isEqualTo(expectedLastRepaired2); }
@Override public void lastRepairedAt(TableReference tableReference, long lastRepairedAt) { tableMetricHolder(tableReference).lastRepairedAt(lastRepairedAt); }
TableRepairMetricsImpl implements TableRepairMetrics, Closeable { @Override public void lastRepairedAt(TableReference tableReference, long lastRepairedAt) { tableMetricHolder(tableReference).lastRepairedAt(lastRepairedAt); } }
TableRepairMetricsImpl implements TableRepairMetrics, Closeable { @Override public void lastRepairedAt(TableReference tableReference, long lastRepairedAt) { tableMetricHolder(tableReference).lastRepairedAt(lastRepairedAt); } private  TableRepairMetricsImpl(Builder builder); }
TableRepairMetricsImpl implements TableRepairMetrics, Closeable { @Override public void lastRepairedAt(TableReference tableReference, long lastRepairedAt) { tableMetricHolder(tableReference).lastRepairedAt(lastRepairedAt); } private  TableRepairMetricsImpl(Builder builder); @Override void repairState(TableReference tableReference, int repairedRanges, int notRepairedRanges); @Override void lastRepairedAt(TableReference tableReference, long lastRepairedAt); @Override void repairTiming(TableReference tableReference, long timeTaken, TimeUnit timeUnit, boolean successful); @Override void close(); static Builder builder(); }
TableRepairMetricsImpl implements TableRepairMetrics, Closeable { @Override public void lastRepairedAt(TableReference tableReference, long lastRepairedAt) { tableMetricHolder(tableReference).lastRepairedAt(lastRepairedAt); } private  TableRepairMetricsImpl(Builder builder); @Override void repairState(TableReference tableReference, int repairedRanges, int notRepairedRanges); @Override void lastRepairedAt(TableReference tableReference, long lastRepairedAt); @Override void repairTiming(TableReference tableReference, long timeTaken, TimeUnit timeUnit, boolean successful); @Override void close(); static Builder builder();  }