Update to session creation procedure
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / dialogs / ICreateSessionDialog.java
CommitLineData
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 13package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs;
bbb3538a 14
115b4a01 15import 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 */
24public interface ICreateSessionDialog {
f3b33d40 25
bbb3538a
BH
26 // ------------------------------------------------------------------------
27 // Accessors
28 // ------------------------------------------------------------------------
29 /**
30 * @return the session name.
31 */
32 public String getSessionName();
33
34 /**
35 * @return the session path (null for default path)
36 */
37 public String getSessionPath();
f3b33d40 38
bbb3538a
BH
39 /**
40 * @return true for default location else false
41 */
42 public boolean isDefaultSessionPath();
f3b33d40 43
d132bcc7 44 /**
f3b33d40 45 * Initializes the dialog box.
d132bcc7
BH
46 * @param group - the session group
47 */
f3b33d40
BH
48 public void initialize(TraceSessionGroup group);
49
50 /**
51 * @return true if traces is to be streamed else false.
52 */
53 public boolean isStreamedTrace();
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 */
60 public String getNetworkUrl();
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 */
69 public String getControlUrl();
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 */
78 public String getDataUrl();
79
bbb3538a
BH
80 // ------------------------------------------------------------------------
81 // Operations
82 // ------------------------------------------------------------------------
83 /**
84 * @return the open return value
85 */
86 int open();
87}
This page took 0.037535 seconds and 5 git commands to generate.