package water.api;
import water.H2O;
import water.Iced;
import water.TimeLine;
import water.api.schemas3.TimelineV3;
import water.init.TimelineSnapshot;
/** UDP Timeline
* Created by tomasnykodym on 6/5/14.
*/
public class TimelineHandler extends Handler {
public static final class Timeline extends Iced {
public TimelineSnapshot snapshot;
}
// TODO: should return a base class for TimelineVx
@SuppressWarnings("unused") // called through reflection by RequestServer
public TimelineV3 fetch(int version, TimelineV3 s) {
Timeline t = s.createAndFillImpl();
t.snapshot = new TimelineSnapshot(H2O.CLOUD,TimeLine.system_snapshot());
return s.fillFromImpl(t);
}
}