[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:
parent
ce0391f3c7
commit
7cf959cb66
|
@ -243,7 +243,7 @@ public class StartDatafeedAction
|
|||
return datafeedId;
|
||||
}
|
||||
|
||||
public long getStartTime() {
|
||||
public long getDatafeedStartTime() {
|
||||
return startTime;
|
||||
}
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ public class DatafeedJobRunner extends AbstractComponent {
|
|||
if (e != null) {
|
||||
handler.accept(e);
|
||||
} else {
|
||||
innerRun(holder, task.getStartTime(), task.getEndTime());
|
||||
innerRun(holder, task.getDatafeedStartTime(), task.getEndTime());
|
||||
}
|
||||
});
|
||||
}, handler);
|
||||
|
|
|
@ -306,7 +306,7 @@ public class DatafeedJobRunnerTests extends ESTestCase {
|
|||
private static StartDatafeedAction.DatafeedTask createDatafeedTask(String datafeedId, long startTime, Long endTime) {
|
||||
StartDatafeedAction.DatafeedTask task = mock(StartDatafeedAction.DatafeedTask.class);
|
||||
when(task.getDatafeedId()).thenReturn(datafeedId);
|
||||
when(task.getStartTime()).thenReturn(startTime);
|
||||
when(task.getDatafeedStartTime()).thenReturn(startTime);
|
||||
when(task.getEndTime()).thenReturn(endTime);
|
||||
return task;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue