[ML] renamed getter as it overwrote super method that was used for a different purpose.

Original commit: elastic/x-pack-elasticsearch@a8b70e769b
This commit is contained in:
Martijn van Groningen 2017-03-21 11:24:26 +01:00
parent ce0391f3c7
commit 7cf959cb66
3 changed files with 3 additions and 3 deletions

View File

@ -243,7 +243,7 @@ public class StartDatafeedAction
return datafeedId; return datafeedId;
} }
public long getStartTime() { public long getDatafeedStartTime() {
return startTime; return startTime;
} }

View File

@ -104,7 +104,7 @@ public class DatafeedJobRunner extends AbstractComponent {
if (e != null) { if (e != null) {
handler.accept(e); handler.accept(e);
} else { } else {
innerRun(holder, task.getStartTime(), task.getEndTime()); innerRun(holder, task.getDatafeedStartTime(), task.getEndTime());
} }
}); });
}, handler); }, handler);

View File

@ -306,7 +306,7 @@ public class DatafeedJobRunnerTests extends ESTestCase {
private static StartDatafeedAction.DatafeedTask createDatafeedTask(String datafeedId, long startTime, Long endTime) { private static StartDatafeedAction.DatafeedTask createDatafeedTask(String datafeedId, long startTime, Long endTime) {
StartDatafeedAction.DatafeedTask task = mock(StartDatafeedAction.DatafeedTask.class); StartDatafeedAction.DatafeedTask task = mock(StartDatafeedAction.DatafeedTask.class);
when(task.getDatafeedId()).thenReturn(datafeedId); when(task.getDatafeedId()).thenReturn(datafeedId);
when(task.getStartTime()).thenReturn(startTime); when(task.getDatafeedStartTime()).thenReturn(startTime);
when(task.getEndTime()).thenReturn(endTime); when(task.getEndTime()).thenReturn(endTime);
return task; return task;
} }