[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 / TmfRequestStub.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.tests.stubs.request;
14
15 import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
16 import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
17 import org.eclipse.linuxtools.tmf.core.request.TmfRequest;
18
19 /**
20 * <b><u>TmfRequestStub</u></b>
21 */
22 public class TmfRequestStub extends TmfRequest {
23
24 /**
25 * Constructor for all the events at normal priority
26 */
27 public TmfRequestStub() {
28 super();
29 }
30
31 /**
32 * Constructor for all the events at the specified priority
33 *
34 * @param priority the request priority
35 */
36 public TmfRequestStub(TmfRequestPriority priority) {
37 super(priority);
38 }
39
40 /**
41 * Constructor for all the events in a time range
42 *
43 * @param timeRange The time range
44 */
45 public TmfRequestStub(TmfTimeRange timeRange) {
46 super(timeRange);
47 }
48
49 /**
50 * Constructor for all the events in a block
51 *
52 * @param startIndex The start index
53 * @param nbRequested The number of events requested
54 */
55 public TmfRequestStub(long startIndex, long nbRequested) {
56 super(startIndex, nbRequested);
57 }
58
59 /**
60 * Standard constructor
61 *
62 * @param timeRange The time range
63 * @param startIndex The start index
64 * @param nbRequested The number of events requested
65 */
66 public TmfRequestStub(TmfTimeRange timeRange, long startIndex, long nbRequested) {
67 super(timeRange, startIndex, nbRequested);
68 }
69
70 /**
71 * Full constructor
72 *
73 * @param timeRange Time range of interest
74 * @param nbRequested Number of events requested
75 * @param startIndex Index of the first event requested
76 * @param priority Request priority
77 */
78 public TmfRequestStub(TmfTimeRange timeRange, long startIndex, long nbRequested, TmfRequestPriority priority) {
79 super(timeRange, startIndex, nbRequested, priority);
80 }
81
82 /**
83 * Copy constructor
84 *
85 * @param other the other request
86 */
87 public TmfRequestStub(TmfRequestStub other) {
88 super(other);
89 }
90
91 /**
92 * @param timeRange the time range
93 */
94 @Override
95 public void setTimeRange(TmfTimeRange timeRange) {
96 super.setTimeRange(timeRange);
97 }
98
99 /**
100 * @param nbRequested the number of events requested
101 */
102 @Override
103 public void setNbRequested(long nbRequested) {
104 super.setNbRequested(nbRequested);
105 }
106
107 /**
108 * @param index the index of the first event requested
109 */
110 @Override
111 public void setStartIndex(long index) {
112 super.setStartIndex(index);
113 }
114
115 /* (non-Javadoc)
116 * @see org.eclipse.linuxtools.tmf.core.request.TmfRequest#handleEvent(org.eclipse.linuxtools.tmf.core.event.ITmfEvent)
117 */
118 @Override
119 public synchronized void handleEvent(final ITmfEvent data) {
120 super.handleEvent(data);
121 }
122 }
This page took 0.032738 seconds and 5 git commands to generate.