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> {
// ========================================================================
* @throws FileNotFoundException
*/
public LTTngTraceStub(String filename) throws FileNotFoundException {
- this(filename, DEFAULT_CACHE_SIZE);
+ this(filename, DEFAULT_INDEX_PAGE_SIZE);
}
/**
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());
}
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()
*/