1 package org
.eclipse
.linuxtools
.lttng
.state
.trace
;
3 import org
.eclipse
.linuxtools
.lttng
.request
.ILttngSyntEventRequest
;
4 import org
.eclipse
.linuxtools
.lttng
.request
.IRequestStatusListener
;
5 import org
.eclipse
.linuxtools
.lttng
.signal
.ILttExperimentSelectedListener
;
6 import org
.eclipse
.linuxtools
.lttng
.state
.evProcessor
.ITransEventProcessor
;
7 import org
.eclipse
.linuxtools
.lttng
.state
.model
.LttngTraceState
;
8 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimeRange
;
9 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimestamp
;
10 import org
.eclipse
.linuxtools
.tmf
.trace
.ITmfTrace
;
12 public interface IStateTraceManager
extends ILttExperimentSelectedListener
{
14 * TODO: Not ready for threading
16 * Read events within specific time window, e.g. time range selection
25 public abstract ILttngSyntEventRequest
executeDataRequest(
26 TmfTimeRange trange
, Object source
,
27 IRequestStatusListener listener
, ITransEventProcessor processor
);
30 * used to obtain details on the log associated with this manager e.g.
35 public abstract ITmfTrace
getTrace();
38 * Restore to the closest checkpoint from TmfTimestamp
40 * Note : it is heavier to restore by timestamp than by event position,
41 * restore by event position whichever possible.
44 * The timestamp of the event to restore to
46 * @return TmfTimestamp indicates the nearest time used to restore the
47 * state, null sent if input is invalid
49 public abstract TmfTimestamp
restoreCheckPointByTimestamp(
50 TmfTimestamp eventTime
);
55 public abstract TmfTimeRange
getExperimentTimeWindow();
58 * Returns the State model instance associated with this Trace
62 public abstract LttngTraceState
getStateModel();