1 /*******************************************************************************
2 * Copyright (c) 2009, 2014 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.request
;
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
;
20 * <b><u>TmfEventRequestStub</u></b>
22 public class TmfEventRequestStub
extends TmfEventRequest
{
25 * @param dataType the event type
27 public TmfEventRequestStub(final Class
<?
extends ITmfEvent
> dataType
) {
28 super(dataType
, TmfTimeRange
.ETERNITY
, 0, ALL_DATA
, ExecutionType
.FOREGROUND
);
32 * @param dataType the event type
33 * @param range the requested time range
35 public TmfEventRequestStub(final Class
<?
extends ITmfEvent
> dataType
, final TmfTimeRange range
) {
36 super(dataType
, range
, 0, ALL_DATA
, ExecutionType
.FOREGROUND
);
40 * @param dataType the event type
41 * @param range the requested time range
42 * @param nbRequested the number of events requested
44 public TmfEventRequestStub(final Class
<?
extends ITmfEvent
> dataType
, final TmfTimeRange range
, final int nbRequested
) {
45 super(dataType
, range
, 0, nbRequested
, ExecutionType
.FOREGROUND
);
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
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
);
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
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
);
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
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
);
82 public void handleData(final ITmfEvent data
) {
83 super.handleData(data
);
This page took 0.034101 seconds and 5 git commands to generate.