Re-structure LTTng sub-project as per the Linux Tools guidelines
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui.tests / stubs / org / eclipse / linuxtools / lttng / stubs / LTTngTraceStub.java
index 3395776f44cefbc275b070b0d10d4c5ab0c1e587..63b096b1d165eb50b2f69a7303e691d1f842300e 100644 (file)
@@ -16,20 +16,21 @@ import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.RandomAccessFile;
 
-import org.eclipse.linuxtools.lttng.event.LttngEvent;
-import org.eclipse.linuxtools.tmf.event.TmfEvent;
-import org.eclipse.linuxtools.tmf.parser.ITmfEventParser;
-import org.eclipse.linuxtools.tmf.trace.ITmfLocation;
-import org.eclipse.linuxtools.tmf.trace.ITmfTrace;
-import org.eclipse.linuxtools.tmf.trace.TmfContext;
-import org.eclipse.linuxtools.tmf.trace.TmfLocation;
-import org.eclipse.linuxtools.tmf.trace.TmfTrace;
+import org.eclipse.linuxtools.lttng.core.event.LttngEvent;
+import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
+import org.eclipse.linuxtools.tmf.core.parser.ITmfEventParser;
+import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
+import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
+import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
+import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
+import org.eclipse.linuxtools.tmf.core.trace.TmfTrace;
 
 /**
  * <b><u>LTTngTraceStub</u></b>
  * <p>
  * Dummy test trace. Use in conjunction with LTTngEventParserStub.
  */
+@SuppressWarnings("nls")
 public class LTTngTraceStub extends TmfTrace<LttngEvent> {
 
     // ========================================================================
@@ -52,7 +53,7 @@ public class LTTngTraceStub extends TmfTrace<LttngEvent> {
      * @throws FileNotFoundException
      */
     public LTTngTraceStub(String filename) throws FileNotFoundException {
-        this(filename, DEFAULT_CACHE_SIZE);
+        this(filename, DEFAULT_INDEX_PAGE_SIZE);
     }
 
     /**
@@ -65,11 +66,12 @@ public class LTTngTraceStub extends TmfTrace<LttngEvent> {
         super(filename, LttngEvent.class, filename, cacheSize);
         fTrace = new RandomAccessFile(filename, "r");
        fParser = new LTTngEventParserStub();
-       indexTrace(true);
+//     indexTrace(true);
     }
     
-       public ITmfTrace createTraceCopy() {
-               ITmfTrace returnedValue = null;
+       @Override
+       public ITmfTrace<LttngEvent> copy() {
+               ITmfTrace<LttngEvent> returnedValue = null;
                try {
                        returnedValue = new LTTngTraceStub(this.getName());
                }
@@ -113,6 +115,18 @@ public class LTTngTraceStub extends TmfTrace<LttngEvent> {
         return context;
     }
 
+    @Override
+    public TmfContext seekLocation(double ratio) {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+    @Override
+    public double getLocationRatio(ITmfLocation<?> location) {
+        // TODO Auto-generated method stub
+        return 0;
+    }
+
     /* (non-Javadoc)
      * @see org.eclipse.linuxtools.tmf.eventlog.ITmfStreamLocator#getCurrentLocation()
      */
This page took 0.024943 seconds and 5 git commands to generate.