X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Flttng%2Fcore%2Ftrace%2FLTTngExperiment.java;h=cd99f68f70cd1fac81b725b669114d366c7f2bad;hb=72f1e62a51b4abd5026692352c5a4b103cc440c6;hp=e108d9e6f22dc69d5493df46efbb6b7fd386f7d2;hpb=bd78efc63aed8f91b7536839fa81943530b41987;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/lttng/core/trace/LTTngExperiment.java b/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/lttng/core/trace/LTTngExperiment.java index e108d9e6f2..cd99f68f70 100644 --- a/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/lttng/core/trace/LTTngExperiment.java +++ b/org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/lttng/core/trace/LTTngExperiment.java @@ -16,8 +16,8 @@ import org.eclipse.linuxtools.lttng.core.event.LttngEvent; import org.eclipse.linuxtools.lttng.core.event.LttngTimestamp; import org.eclipse.linuxtools.lttng.core.tracecontrol.utility.LiveTraceManager; import org.eclipse.linuxtools.lttng.jni.JniTrace; +import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; -import org.eclipse.linuxtools.tmf.core.event.TmfEvent; import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange; import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp; import org.eclipse.linuxtools.tmf.core.experiment.TmfExperiment; @@ -38,7 +38,7 @@ import org.eclipse.linuxtools.tmf.core.trace.TmfContext; * Temporary class to resolve a basic incompatibility between TMF and LTTng. *

*/ -public class LTTngExperiment extends TmfExperiment { +public class LTTngExperiment extends TmfExperiment { private static final int DEFAULT_INDEX_PAGE_SIZE = 50000; @@ -108,7 +108,7 @@ public class LTTngExperiment extends TmfExperiment { // ------------------------------------------------------------------------ @Override - public synchronized TmfEvent getNextEvent(TmfContext context) { + public synchronized ITmfEvent getNextEvent(TmfContext context) { // Validate the context if (!(context instanceof TmfExperimentContext)) { @@ -133,7 +133,7 @@ public class LTTngExperiment extends TmfExperiment { } // Scan the candidate events and identify the "next" trace to read from - TmfEvent eventArray[] = expContext.getEvents(); + ITmfEvent eventArray[] = expContext.getEvents(); if (eventArray == null) { return null; } @@ -146,7 +146,7 @@ public class LTTngExperiment extends TmfExperiment { } } else { for (int i = 0; i < eventArray.length; i++) { - TmfEvent event = eventArray[i]; + ITmfEvent event = eventArray[i]; if (event != null && event.getTimestamp() != null) { ITmfTimestamp otherTS = event.getTimestamp(); if (otherTS.compareTo(timestamp, true) < 0) { @@ -158,7 +158,7 @@ public class LTTngExperiment extends TmfExperiment { } // Update the experiment context and set the "next" event - TmfEvent event = null; + ITmfEvent event = null; if (trace != TmfExperimentContext.NO_TRACE) { // updateIndex(expContext, timestamp);