DBZ-2994 Return current SCN as string in LogMinerMetrics
This commit is contained in:
parent
bd7adb40ed
commit
97da4333a3
@ -195,8 +195,8 @@ public void incrementNetworkConnectionProblemsCounter() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getCurrentScn() {
|
||||
return currentScn.get().longValue();
|
||||
public String getCurrentScn() {
|
||||
return currentScn.get().toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -13,7 +13,7 @@ public interface LogMinerMetricsMXBean {
|
||||
/**
|
||||
* @return the current system change number of the database
|
||||
*/
|
||||
Long getCurrentScn();
|
||||
String getCurrentScn();
|
||||
|
||||
/**
|
||||
* @return array of current filenames to be used by the mining session.
|
||||
|
@ -50,7 +50,7 @@ public void testMetrics() {
|
||||
assertThat(metrics.getTotalCapturedDmlCount() == 1).isTrue();
|
||||
|
||||
metrics.setCurrentScn(Scn.valueOf(1000L));
|
||||
assertThat(metrics.getCurrentScn()).isEqualTo(1000L);
|
||||
assertThat(metrics.getCurrentScn()).isEqualTo("1000");
|
||||
|
||||
metrics.setBatchSize(10);
|
||||
assertThat(metrics.getBatchSize() == connectorConfig.getLogMiningBatchSizeDefault()).isTrue();
|
||||
|
Loading…
Reference in New Issue
Block a user