Commit | Line | Data |
---|---|---|
d18dd09b | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2009, 2014 Ericsson |
0283f7ff | 3 | * |
d18dd09b ASL |
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 | |
0283f7ff | 8 | * |
d18dd09b ASL |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.tests.stubs.request; |
d18dd09b | 14 | |
2bdf0193 AM |
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; | |
d18dd09b ASL |
18 | |
19 | /** | |
20 | * <b><u>TmfEventRequestStub</u></b> | |
d18dd09b | 21 | */ |
6256d8ad | 22 | public class TmfEventRequestStub extends TmfEventRequest { |
d18dd09b ASL |
23 | |
24 | /** | |
0283f7ff | 25 | * @param dataType the event type |
d18dd09b | 26 | */ |
6256d8ad | 27 | public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType) { |
672a642a | 28 | super(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, ExecutionType.FOREGROUND); |
d18dd09b ASL |
29 | } |
30 | ||
31 | /** | |
0283f7ff FC |
32 | * @param dataType the event type |
33 | * @param range the requested time range | |
d18dd09b | 34 | */ |
6256d8ad | 35 | public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range) { |
672a642a | 36 | super(dataType, range, 0, ALL_DATA, ExecutionType.FOREGROUND); |
d18dd09b ASL |
37 | } |
38 | ||
39 | /** | |
0283f7ff FC |
40 | * @param dataType the event type |
41 | * @param range the requested time range | |
42 | * @param nbRequested the number of events requested | |
d18dd09b | 43 | */ |
6256d8ad | 44 | public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final int nbRequested) { |
672a642a | 45 | super(dataType, range, 0, nbRequested, ExecutionType.FOREGROUND); |
d18dd09b | 46 | } |
085d898f | 47 | |
d18dd09b | 48 | /** |
0283f7ff FC |
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 | |
d18dd09b | 53 | */ |
6256d8ad | 54 | public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final int nbRequested, final int blockSize) { |
672a642a | 55 | super(dataType, range, 0, nbRequested, ExecutionType.FOREGROUND); |
d18dd09b ASL |
56 | } |
57 | ||
923b8517 | 58 | /** |
0283f7ff FC |
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 | |
923b8517 | 64 | */ |
6256d8ad | 65 | public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final long index, final int nbRequested, final int blockSize) { |
672a642a | 66 | super(dataType, range, index, nbRequested, ExecutionType.FOREGROUND); |
923b8517 FC |
67 | } |
68 | ||
6eaea67d BH |
69 | /** |
70 | * @param dataType the event type | |
71 | * @param range the requested time range | |
72 | * @param nbRequested the number of events requested | |
73 | * @param blockSize the event block size | |
74 | * @param type the execution type | |
75 | * @param dependency the dependency | |
76 | */ | |
77 | public TmfEventRequestStub(final Class<? extends ITmfEvent> dataType, final TmfTimeRange range, final int nbRequested, final int blockSize, ExecutionType type, int dependency) { | |
78 | super(dataType, range, 0, nbRequested, type, dependency); | |
79 | } | |
80 | ||
085d898f | 81 | @Override |
5419a136 AM |
82 | public void handleData(final ITmfEvent data) { |
83 | super.handleData(data); | |
085d898f | 84 | } |
d18dd09b | 85 | } |