Fix for streaming and reconnection. Added standalone releng for lttng.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / parsers / custom / CustomTxtTrace.java
index e4bd564c76402c8d5b40253b35ed420c2010c6bd..1815155e2b8fb1abaf9ad2e189915b4396936544 100644 (file)
@@ -37,7 +37,8 @@ import org.eclipse.linuxtools.tmf.ui.parsers.custom.CustomTxtTraceDefinition.Inp
 public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {\r
 \r
     private static final TmfLocation<Long> NULL_LOCATION = new TmfLocation<Long>((Long) null);\r
-    \r
+    private static final int CACHE_SIZE = 100;\r
+\r
     private CustomTxtTraceDefinition fDefinition;\r
     private CustomTxtEventType fEventType;\r
 \r
@@ -52,7 +53,12 @@ public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {
         fEventType = new CustomTxtEventType(fDefinition);\r
     }\r
 \r
-       @Override\r
+    @Override\r
+    public void initTrace(String path, Class<CustomTxtEvent> eventType, boolean indexTrace) throws FileNotFoundException {\r
+        super.initTrace(path, eventType, CACHE_SIZE, indexTrace);\r
+    }\r
+\r
+    @Override\r
        @SuppressWarnings({ "unchecked", "rawtypes" })\r
        public ITmfTrace copy() {\r
         // TODO Auto-generated method stub\r
@@ -61,8 +67,6 @@ public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {
 \r
     @Override\r
     public TmfContext seekLocation(ITmfLocation<?> location) {\r
-        //System.out.println(Thread.currentThread().getName() + "::" + getName() + " seekLocation(" + ((location == null || location.getLocation() == null) ? "null" : location) + ")");\r
-        //new Throwable().printStackTrace();\r
         CustomTxtTraceContext context = new CustomTxtTraceContext(NULL_LOCATION, ITmfContext.INITIAL_RANK);\r
         if (NULL_LOCATION.equals(location) || !new File(getPath()).isFile()) {\r
             return context;\r
@@ -157,7 +161,6 @@ public class CustomTxtTrace extends TmfTrace<CustomTxtEvent> {
 \r
     @Override\r
     public TmfEvent parseEvent(TmfContext tmfContext) {\r
-        //System.out.println(Thread.currentThread().getName() + ":: " + getName() + " parseEvent(" + tmfContext.getRank() + " @ " + (tmfContext.getLocation().getLocation() == null ? "null" : tmfContext.getLocation()));\r
         if (!(tmfContext instanceof CustomTxtTraceContext)) {\r
             return null;\r
         }\r
This page took 0.024453 seconds and 5 git commands to generate.