X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Frequest%2FTmfCoalescedDataRequest.java;h=5d1ad858f4b69f6d8a334c3310d609ed35e1d7eb;hb=0d9a6d765b693ee77f0ccf19a0289de466aa6a63;hp=ea8d49a51b9ca420d2ea0b39b7989e2f9ed7a17b;hpb=4b8c992a9f9a408ebb7c219af99b47ee9af941a8;p=deliverable%2Ftracecompass.git
diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfCoalescedDataRequest.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfCoalescedDataRequest.java
index ea8d49a51b..5d1ad858f4 100644
--- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfCoalescedDataRequest.java
+++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfCoalescedDataRequest.java
@@ -14,19 +14,21 @@ package org.eclipse.linuxtools.tmf.core.request;
import java.util.Vector;
-import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
+import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
/**
* TmfCoalescedDataRequest
*
- * TODO: Implement me. Please.
*/
-public class TmfCoalescedDataRequest extends TmfDataRequest {
+public class TmfCoalescedDataRequest extends TmfDataRequest {
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
+ /**
+ * The list of coalesced requests
+ */
protected Vector> fRequests = new Vector>();
// ------------------------------------------------------------------------
@@ -34,50 +36,99 @@ public class TmfCoalescedDataRequest extends TmfDataRequest<
// ------------------------------------------------------------------------
/**
- * Default constructor
+ * Request all the events of a given type (high priority)
+ * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+ *
+ * @param dataType the requested data type
*/
public TmfCoalescedDataRequest(Class dataType) {
this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
}
- public TmfCoalescedDataRequest(Class dataType, ExecutionType execType) {
- this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+ /**
+ * Request all the events of a given type (given priority)
+ * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+ *
+ * @param dataType the requested data type
+ * @param priority the requested execution priority
+ */
+ public TmfCoalescedDataRequest(Class dataType, ExecutionType priority) {
+ this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
}
/**
- * @param nbRequested
+ * Request all the events of a given type from the given index (high priority)
+ * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+ *
+ * @param dataType the requested data type
+ * @param index the index of the first event to retrieve
*/
public TmfCoalescedDataRequest(Class dataType, int index) {
this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
}
- public TmfCoalescedDataRequest(Class dataType, int index, ExecutionType execType) {
- this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+ /**
+ * Request all the events of a given type from the given index (given priority)
+ * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+ *
+ * @param dataType the requested data type
+ * @param index the index of the first event to retrieve
+ * @param priority the requested execution priority
+ */
+ public TmfCoalescedDataRequest(Class dataType, int index, ExecutionType priority) {
+ this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
}
/**
- * @param index
- * @param nbRequested
+ * Request 'n' events of a given type from the given index (high priority)
+ * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+ *
+ * @param dataType the requested data type
+ * @param index the index of the first event to retrieve
+ * @param nbRequested the number of events requested
*/
public TmfCoalescedDataRequest(Class dataType, int index, int nbRequested) {
this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
}
- public TmfCoalescedDataRequest(Class dataType, int index, int nbRequested, ExecutionType execType) {
- this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, execType);
+ /**
+ * Request 'n' events of a given type from the given index (given priority)
+ * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+ *
+ * @param dataType the requested data type
+ * @param index the index of the first event to retrieve
+ * @param nbRequested the number of events requested
+ * @param priority the requested execution priority
+ */
+ public TmfCoalescedDataRequest(Class dataType, int index, int nbRequested, ExecutionType priority) {
+ this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, priority);
}
/**
- * @param index
- * @param nbRequested
- * @param blockSize
+ * Request 'n' events of a given type from the given index (high priority).
+ * Events are returned in blocks of the given size.
+ *
+ * @param dataType the requested data type
+ * @param index the index of the first event to retrieve
+ * @param nbRequested the number of events requested
+ * @param blockSize the number of events per block
*/
public TmfCoalescedDataRequest(Class dataType, int index, int nbRequested, int blockSize) {
super(dataType, index, nbRequested, blockSize, ExecutionType.FOREGROUND);
}
- public TmfCoalescedDataRequest(Class dataType, int index, int nbRequested, int blockSize, ExecutionType execType) {
- super(dataType, index, nbRequested, blockSize, execType);
+ /**
+ * Request 'n' events of a given type from the given index (given priority).
+ * Events are returned in blocks of the given size.
+ *
+ * @param dataType the requested data type
+ * @param index the index of the first event to retrieve
+ * @param nbRequested the number of events requested
+ * @param blockSize the number of events per block
+ * @param priority the requested execution priority
+ */
+ public TmfCoalescedDataRequest(Class dataType, int index, int nbRequested, int blockSize, ExecutionType priority) {
+ super(dataType, index, nbRequested, blockSize, priority);
}
// ------------------------------------------------------------------------