#2343 - Rename Database.getAutoTune() to autoTune() with deprecation

This commit is contained in:
Rob Bygrave committed 2021-09-02 22:44:31 +12:00
1 parent f770b66f42
commit 239a444d4c
6 files changed
+15 -7

No files matched your search

@@ -350,7 +350,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
}
@Override
public AutoTune getAutoTune() {
public AutoTune autoTune() {
return autoTuneService;
}
@@ -333,7 +333,7 @@ public class TDSpiEbeanServer implements SpiEbeanServer {
}
@Override
public AutoTune getAutoTune() {
public AutoTune autoTune() {
return null;
}
@@ -32,8 +32,8 @@ public class TestBatchLazy extends BaseTestCase {
}
}
Ebean.getDefaultServer().getAutoTune().collectProfiling();
Ebean.getDefaultServer().getAutoTune().reportProfiling();
Ebean.getDefaultServer().autoTune().collectProfiling();
Ebean.getDefaultServer().autoTune().reportProfiling();
}
@@ -68,7 +68,7 @@ public class TestAutofetchTuneWithJoin extends BaseTestCase {
private static void collectUsage() {
Ebean.getDefaultServer().getAutoTune().collectProfiling();
Ebean.getDefaultServer().autoTune().collectProfiling();
}
}
@@ -117,7 +117,7 @@ public class TestAutoTuneProfiling extends BaseTestCase {
private static void collectUsage() {
DB.getDefault().getAutoTune().collectProfiling();
DB.getDefault().autoTune().collectProfiling();
}
}