Commit | Line | Data |
---|---|---|
9e0640dc | 1 | /******************************************************************************* |
61759503 | 2 | * Copyright (c) 2012, 2013 Ericsson |
9b749023 | 3 | * |
9e0640dc FC |
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 | |
9b749023 | 8 | * |
9e0640dc FC |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.tests.stubs.trace; | |
14 | ||
b3dd2736 | 15 | import org.eclipse.core.resources.IResource; |
2771b032 | 16 | import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; |
9e0640dc FC |
17 | import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace; |
18 | import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment; | |
ab186fbb | 19 | import org.eclipse.linuxtools.tmf.core.trace.indexer.ITmfTraceIndexer; |
9e0640dc FC |
20 | |
21 | /** | |
22 | * <b><u>TmfExperimentStub</u></b> | |
23 | * <p> | |
24 | * Implement me. Please. | |
25 | * <p> | |
26 | */ | |
54a7a54c | 27 | @SuppressWarnings("javadoc") |
6256d8ad | 28 | public class TmfExperimentStub extends TmfExperiment { |
9e0640dc | 29 | |
b3dd2736 GB |
30 | public TmfExperimentStub() { |
31 | super(); | |
32 | } | |
33 | ||
6256d8ad | 34 | public TmfExperimentStub(String name, ITmfTrace[] traces, int blockSize) { |
2771b032 | 35 | super(ITmfEvent.class, name, traces, blockSize); |
ab186fbb MAL |
36 | } |
37 | ||
38 | @Override | |
39 | protected ITmfTraceIndexer createIndexer(int interval) { | |
40 | return new TmfIndexerStub(this, interval); | |
9e0640dc FC |
41 | } |
42 | ||
43 | @Override | |
44 | public TmfIndexerStub getIndexer() { | |
45 | return (TmfIndexerStub) super.getIndexer(); | |
46 | } | |
b3dd2736 GB |
47 | |
48 | @Override | |
49 | public void initExperiment(final Class<? extends ITmfEvent> type, final String path, final ITmfTrace[] traces, final int indexPageSize, IResource resource) { | |
50 | super.initExperiment(type, path, traces, indexPageSize, resource); | |
51 | } | |
9e0640dc | 52 | } |