Commit | Line | Data |
---|---|---|
4d2857be GB |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 École Polytechnique de Montréal | |
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 | * Geneviève Bastien - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.tests.stubs.trace; |
4d2857be | 14 | |
2bdf0193 AM |
15 | import org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException; |
16 | import org.eclipse.tracecompass.tmf.core.trace.ITmfEventParser; | |
4d2857be GB |
17 | |
18 | /** | |
19 | * Another stub trace class for unit tests who need more than one stub class. | |
20 | * | |
21 | * @author Geneviève Bastien | |
22 | */ | |
23 | public class TmfTraceStub2 extends TmfTraceStub { | |
24 | ||
04da5385 GB |
25 | /** |
26 | * Default constructor | |
27 | */ | |
28 | public TmfTraceStub2() { | |
29 | super(); | |
30 | } | |
31 | ||
4d2857be GB |
32 | /** |
33 | * Constructor to specify the parser and indexer. The streaming interval | |
34 | * will be 0. | |
35 | * | |
36 | * @param path | |
37 | * The path to the trace file | |
38 | * @param cacheSize | |
39 | * The cache size | |
40 | * @param waitForCompletion | |
41 | * Do we block the caller until the trace is indexed, or not. | |
42 | * @param parser | |
43 | * The trace parser. If left 'null', it will use a | |
44 | * {@link TmfEventParserStub}. | |
45 | * @throws TmfTraceException | |
46 | * If an error occurred opening the trace | |
47 | */ | |
48 | public TmfTraceStub2(final String path, | |
49 | final int cacheSize, | |
50 | final boolean waitForCompletion, | |
51 | final ITmfEventParser parser) throws TmfTraceException { | |
52 | super(path, cacheSize, waitForCompletion, parser); | |
53 | } | |
54 | ||
55 | } |