Commit | Line | Data |
---|---|---|
5d10d135 ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2010 Ericsson | |
0c32e4c5 | 3 | * |
5d10d135 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 | |
0c32e4c5 | 8 | * |
5d10d135 ASL |
9 | * Contributors: |
10 | * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
5945cec9 | 13 | package org.eclipse.linuxtools.internal.lttng.core.state.experiment; |
5d10d135 | 14 | |
5945cec9 | 15 | import org.eclipse.linuxtools.internal.lttng.core.model.LTTngTreeNode; |
6c13869b | 16 | import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange; |
9e0640dc | 17 | import org.eclipse.linuxtools.tmf.core.trace.TmfExperiment; |
5d10d135 ASL |
18 | |
19 | public interface IStateExperimentManager { | |
20 | ||
550d787e FC |
21 | // /** |
22 | // * Read all available traces from the nearest checkpoint from start position | |
23 | // * to the end of a specified time range. One request per trace in the | |
24 | // * experiment will be triggered | |
0c32e4c5 | 25 | // * |
550d787e FC |
26 | // * @param trange |
27 | // * @param obs | |
28 | // * @param transactionID | |
29 | // * @param display | |
30 | // * @return | |
31 | // */ | |
32 | // public abstract ILttngSyntEventRequest readExperimentTimeWindow( | |
33 | // TmfTimeRange trange, | |
34 | // Object origin, IRequestStatusListener listener, | |
35 | // ITransEventProcessor processor); | |
36 | // | |
37 | // /** | |
38 | // * Read available traces from the Experiment start time, One request per | |
39 | // * trace in the Experiment | |
0c32e4c5 | 40 | // * |
550d787e FC |
41 | // * @param source |
42 | // * @param listener | |
43 | // * @param processor | |
44 | // */ | |
45 | // public abstract void readExperiment(Object source, | |
46 | // IRequestStatusListener listener, ITransEventProcessor processor); | |
5d10d135 ASL |
47 | |
48 | /** | |
49 | * A new Experiment selected, notification received from the framework | |
50 | * Notify the new experiment selection to the state handling managers | |
0c32e4c5 | 51 | * |
5d10d135 ASL |
52 | * @param source |
53 | * @param experiment | |
54 | */ | |
0c32e4c5 | 55 | public abstract void experimentSelected_prep(TmfExperiment experiment); |
5d10d135 ASL |
56 | |
57 | /** | |
58 | * @param source | |
59 | * @param experiment | |
60 | */ | |
0c32e4c5 | 61 | public void experimentSelected(Object source, TmfExperiment experiment); |
5d10d135 ASL |
62 | |
63 | /** | |
64 | * @return | |
65 | */ | |
66 | public abstract TmfTimeRange getExperimentTimeRange(); | |
67 | ||
68 | /** | |
69 | * @return | |
70 | */ | |
71 | public abstract LTTngTreeNode getSelectedExperiment(); | |
72 | ||
73 | /** | |
74 | * Wait for request completion upon experiment selection | |
0c32e4c5 | 75 | * |
5d10d135 ASL |
76 | * @param wait |
77 | */ | |
78 | public abstract void waitForCompletion(boolean wait); | |
79 | ||
80 | } |