[CTF] fix support for traces with per-event contexts
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / stubs / org / eclipse / linuxtools / tmf / tests / stubs / request / TmfEventRequestStub.java
CommitLineData
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 13package org.eclipse.linuxtools.tmf.tests.stubs.request;
d18dd09b 14
6256d8ad 15import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
6c13869b
FC
16import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
17import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
d18dd09b
ASL
18
19/**
20 * <b><u>TmfEventRequestStub</u></b>
d18dd09b 21 */
6256d8ad 22public 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) {
085d898f 28 super(dataType);
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) {
085d898f 36 super(dataType, range);
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) {
085d898f 45 super(dataType, range, nbRequested);
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) {
085d898f 55 super(dataType, range, nbRequested, blockSize);
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) {
923b8517
FC
66 super(dataType, range, index, nbRequested, blockSize);
67 }
68
085d898f
FC
69 /* (non-Javadoc)
70 * @see org.eclipse.linuxtools.tmf.core.request.TmfDataRequest#handleData(org.eclipse.linuxtools.tmf.core.event.ITmfEvent)
71 */
72 @Override
8584dc20
FC
73 public synchronized void handleEvent(final ITmfEvent data) {
74 super.handleEvent(data);
085d898f 75 }
d18dd09b 76}
This page took 0.047779 seconds and 5 git commands to generate.