Commit | Line | Data |
---|---|---|
bbb3538a | 1 | /********************************************************************** |
ba3a9bd2 | 2 | * Copyright (c) 2012, 2013 Ericsson |
f3b33d40 | 3 | * |
bbb3538a BH |
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 | |
f3b33d40 BH |
8 | * |
9 | * Contributors: | |
bbb3538a | 10 | * Bernd Hufmann - Initial API and implementation |
ba3a9bd2 | 11 | * Bernd Hufmann - Updated for support of LTTng Tools 2.1 |
bbb3538a | 12 | **********************************************************************/ |
115b4a01 | 13 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
bbb3538a | 14 | |
115b4a01 | 15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup; |
d132bcc7 | 16 | |
bbb3538a | 17 | /** |
bbb3538a BH |
18 | * <p> |
19 | * Interface for create session dialog. | |
20 | * </p> | |
f3b33d40 | 21 | * |
dbd4432d | 22 | * @author Bernd Hufmann |
bbb3538a BH |
23 | */ |
24 | public interface ICreateSessionDialog { | |
f3b33d40 | 25 | |
bbb3538a BH |
26 | // ------------------------------------------------------------------------ |
27 | // Accessors | |
28 | // ------------------------------------------------------------------------ | |
29 | /** | |
30 | * @return the session name. | |
31 | */ | |
a6e6f7b4 | 32 | String getSessionName(); |
bbb3538a BH |
33 | |
34 | /** | |
35 | * @return the session path (null for default path) | |
36 | */ | |
a6e6f7b4 | 37 | String getSessionPath(); |
f3b33d40 | 38 | |
bbb3538a BH |
39 | /** |
40 | * @return true for default location else false | |
41 | */ | |
a6e6f7b4 | 42 | boolean isDefaultSessionPath(); |
f3b33d40 | 43 | |
d132bcc7 | 44 | /** |
f3b33d40 | 45 | * Initializes the dialog box. |
d132bcc7 BH |
46 | * @param group - the session group |
47 | */ | |
a6e6f7b4 | 48 | void initialize(TraceSessionGroup group); |
f3b33d40 BH |
49 | |
50 | /** | |
51 | * @return true if traces is to be streamed else false. | |
52 | */ | |
a6e6f7b4 | 53 | boolean isStreamedTrace(); |
f3b33d40 BH |
54 | |
55 | /** | |
56 | * Get the network URL in case control and data is configured together otherwise null | |
57 | * If it returns a non-null value, getControlUrl() and getDataUrl() have to return null. | |
58 | * @return The network URL or null. | |
59 | */ | |
a6e6f7b4 | 60 | String getNetworkUrl(); |
f3b33d40 BH |
61 | |
62 | /** | |
63 | * Get the control URL in case control and data is configured separately. | |
64 | * If it returns a non-null value, getDataUrl() has to return a valid value too | |
65 | * and getNetworkUrl() has to return null. | |
66 | * | |
67 | * @return The control URL or null. | |
68 | */ | |
a6e6f7b4 | 69 | String getControlUrl(); |
f3b33d40 BH |
70 | |
71 | /** | |
72 | * Get the data URL in case control and data is configured separately. | |
73 | * If it returns a non-null value, getControlUrl() has to return a valid value too | |
74 | * and getNetworkUrl() has to return null. | |
75 | * | |
76 | * @return The data URL or null. | |
77 | */ | |
a6e6f7b4 | 78 | String getDataUrl(); |
f3b33d40 | 79 | |
589d0d33 BH |
80 | /** |
81 | * @return <code>true</code> if is a snapshot session else <code>false</code> | |
82 | */ | |
83 | boolean isSnapshot(); | |
84 | ||
bbb3538a BH |
85 | // ------------------------------------------------------------------------ |
86 | // Operations | |
87 | // ------------------------------------------------------------------------ | |
88 | /** | |
89 | * @return the open return value | |
90 | */ | |
91 | int open(); | |
92 | } |