tmf: Remove the concept of block size in event requests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / request / TmfDataRequest.java
index d11ae0ff50a1603fbe49f353155527ca56bfaeba..7253122c8daf7b679e9d977661022f291b33fffc 100644 (file)
@@ -80,9 +80,6 @@ public abstract class TmfDataRequest implements ITmfDataRequest {
     // Constants
     // ------------------------------------------------------------------------
 
-    /** The default maximum number of events per chunk */
-    public static final int DEFAULT_BLOCK_SIZE = 1000;
-
     /** The request count for all the events */
     public static final int ALL_DATA = Integer.MAX_VALUE;
 
@@ -104,9 +101,6 @@ public abstract class TmfDataRequest implements ITmfDataRequest {
     /** The number of requested events (ALL_DATA for all) */
     protected int fNbRequested;
 
-    /** The block size (for BG requests) */
-    private final int fBlockSize;
-
     /** The number of reads so far */
     private int fNbRead;
 
@@ -141,22 +135,17 @@ public abstract class TmfDataRequest implements ITmfDataRequest {
      *            The number of events requested. You can use
      *            {@link TmfDataRequest#ALL_DATA} to specify you want all events
      *            in the trace.
-     * @param blockSize
-     *            The number of events per block. You can use
-     *            {@link TmfDataRequest#DEFAULT_BLOCK_SIZE}.
      * @param priority
      *            The requested execution priority.
      */
     public TmfDataRequest(Class<? extends ITmfEvent> dataType,
             long index,
             int nbRequested,
-            int blockSize,
             ExecutionType priority) {
         fRequestId = fRequestNumber++;
         fDataType = dataType;
         fIndex = index;
         fNbRequested = nbRequested;
-        fBlockSize = blockSize;
         fExecType = priority;
         fNbRead = 0;
 
@@ -213,14 +202,6 @@ public abstract class TmfDataRequest implements ITmfDataRequest {
         return fNbRequested;
     }
 
-    /**
-     * @return the block size (for BG requests)
-     */
-    @Override
-    public int getBlockSize() {
-        return fBlockSize;
-    }
-
     /**
      * @return the number of events read so far
      */
@@ -471,7 +452,7 @@ public abstract class TmfDataRequest implements ITmfDataRequest {
     @Override
     @SuppressWarnings("nls")
     public String toString() {
-        return "[TmfDataRequest(" + fRequestId + "," + fDataType.getSimpleName() + "," + fIndex + "," + fNbRequested
-                + "," + getBlockSize() + ")]";
+        return "[TmfDataRequest(" + fRequestId + "," + fDataType.getSimpleName()
+                + "," + fIndex + "," + fNbRequested + ")]";
     }
 }
This page took 0.024429 seconds and 5 git commands to generate.