Commit | Line | Data |
---|---|---|
d18dd09b | 1 | /******************************************************************************* |
61759503 | 2 | * Copyright (c) 2009, 2013 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 | ||
4918b8f2 | 13 | package org.eclipse.linuxtools.tmf.tests.stubs.request; |
d18dd09b | 14 | |
6256d8ad | 15 | import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; |
6c13869b | 16 | import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest; |
3bd46eef | 17 | import org.eclipse.linuxtools.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 | ||
085d898f | 69 | @Override |
5419a136 AM |
70 | public void handleData(final ITmfEvent data) { |
71 | super.handleData(data); | |
085d898f | 72 | } |
d18dd09b | 73 | } |