2f75c65f8322b51dcd6a11b424660bc71915ee13
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core.tests / stubs / org / eclipse / tracecompass / tmf / tests / stubs / request / TmfEventRequestStub.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.tests.stubs.request;
14
15 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
16 import org.eclipse.tracecompass.tmf.core.request.TmfEventRequest;
17 import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange;
18
19 /**
20 * <b><u>TmfEventRequestStub</u></b>
21 */
22 public class TmfEventRequestStub extends TmfEventRequest {
23
24 /**
25 * @param dataType the event type
26 */
27 public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType) {
28 super(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, ExecutionType.FOREGROUND);
29 }
30
31 /**
32 * @param dataType the event type
33 * @param range the requested time range
34 */
35 public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range) {
36 super(dataType, range, 0, ALL_DATA, ExecutionType.FOREGROUND);
37 }
38
39 /**
40 * @param dataType the event type
41 * @param range the requested time range
42 * @param nbRequested the number of events requested
43 */
44 public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final int nbRequested) {
45 super(dataType, range, 0, nbRequested, ExecutionType.FOREGROUND);
46 }
47
48 /**
49 * @param dataType the event type
50 * @param range the requested time range
51 * @param nbRequested the number of events requested
52 * @param blockSize the event block size
53 */
54 public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final int nbRequested, final int blockSize) {
55 super(dataType, range, 0, nbRequested, ExecutionType.FOREGROUND);
56 }
57
58 /**
59 * @param dataType the event type
60 * @param range the requested time range
61 * @param index the initial event index
62 * @param nbRequested the number of events requested
63 * @param blockSize the event block size
64 */
65 public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final long index, final int nbRequested, final int blockSize) {
66 super(dataType, range, index, nbRequested, ExecutionType.FOREGROUND);
67 }
68
69 @Override
70 public void handleData(final ITmfEvent data) {
71 super.handleData(data);
72 }
73 }
This page took 0.03189 seconds and 4 git commands to generate.