Commit | Line | Data |
---|---|---|
d18dd09b ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009, 2010 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.TmfDataRequest; |
d18dd09b ASL |
17 | |
18 | /** | |
6256d8ad | 19 | * |
d18dd09b | 20 | */ |
6256d8ad | 21 | public class TmfDataRequestStub extends TmfDataRequest { |
d18dd09b ASL |
22 | |
23 | /** | |
24 | * Default constructor | |
0283f7ff FC |
25 | * |
26 | * @param dataType the request data type | |
d18dd09b | 27 | */ |
6256d8ad | 28 | public TmfDataRequestStub(final Class<? extends ITmfEvent> dataType) { |
2fb2eb37 | 29 | super(dataType); |
d18dd09b ASL |
30 | } |
31 | ||
32 | /** | |
0283f7ff FC |
33 | * @param dataType the request data type |
34 | * @param index the initial event index | |
d18dd09b | 35 | */ |
6256d8ad | 36 | public TmfDataRequestStub(final Class<? extends ITmfEvent> dataType, final int index) { |
2fb2eb37 | 37 | super(dataType, index); |
d18dd09b ASL |
38 | } |
39 | ||
40 | /** | |
0283f7ff FC |
41 | * @param dataType the request data type |
42 | * @param index the initial event index | |
43 | * @param nbRequested the number of events requested | |
d18dd09b | 44 | */ |
6256d8ad | 45 | public TmfDataRequestStub(final Class<? extends ITmfEvent> dataType, final int index, final int nbRequested) { |
085d898f | 46 | super(dataType, index, nbRequested); |
d18dd09b ASL |
47 | } |
48 | ||
49 | /** | |
0283f7ff FC |
50 | * @param dataType the request data type |
51 | * @param index the initial event index | |
52 | * @param nbRequested the number of events requested | |
53 | * @param blockSize the event block size | |
d18dd09b | 54 | */ |
6256d8ad | 55 | public TmfDataRequestStub(final Class<? extends ITmfEvent> dataType, final int index, final int nbRequested, final int blockSize) { |
d18dd09b ASL |
56 | super(dataType, index, nbRequested, blockSize); |
57 | } | |
58 | ||
085d898f FC |
59 | /* (non-Javadoc) |
60 | * @see org.eclipse.linuxtools.tmf.core.request.TmfDataRequest#handleData(org.eclipse.linuxtools.tmf.core.event.ITmfEvent) | |
61 | */ | |
62 | @Override | |
6256d8ad | 63 | public void handleData(final ITmfEvent data) { |
085d898f FC |
64 | super.handleData(data); |
65 | } | |
d18dd09b ASL |
66 | |
67 | } |