Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ef13775818a07171b79e3e97232479e378457149 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**********************************************************************
 * Copyright (c) 2012 Ericsson
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Bernd Hufmann - Initial API and implementation
 **********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs;

import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup;

/**
 * <p>
 * Interface for create session dialog.
 * </p>
 *
 * @author Bernd Hufmann
 */
public interface ICreateSessionDialog {

    // ------------------------------------------------------------------------
    // Accessors
    // ------------------------------------------------------------------------
    /**
     * @return the session name.
     */
    public String getSessionName();

    /**
     * @return the session path (null for default path)
     */
    public String getSessionPath();

    /**
     * @return true for default location else false
     */
    public boolean isDefaultSessionPath();

    /**
     * Initializes the dialog box.
     * @param group - the session group
     */
    public void initialize(TraceSessionGroup group);

    /**
     * @return true if traces is to be streamed else false.
     */
    public boolean isStreamedTrace();

    /**
     * Get the network URL in case control and data is configured together otherwise null
     * If it returns a non-null value, getControlUrl() and getDataUrl() have to return null.
     * @return The network URL or null.
     */
    public String getNetworkUrl();

    /**
     * Get the control URL in case control and data is configured separately.
     * If it returns a non-null value, getDataUrl() has to return a valid value too
     * and getNetworkUrl() has to return null.
     *
     * @return The control URL or null.
     */
    public String getControlUrl();

    /**
     * Get the data URL in case control and data is configured separately.
     * If it returns a non-null value, getControlUrl() has to return a valid value too
     * and getNetworkUrl() has to return null.
     *
     * @return The data URL or null.
     */
    public String getDataUrl();

    /**
     * @return for not activating a consumer for this session
     */
    public boolean isNoConsumer();

    /**
     * @return for disabling a consumer for this session
     */
    public boolean isDisableConsumer();

    // ------------------------------------------------------------------------
    // Operations
    // ------------------------------------------------------------------------
    /**
     * @return the open return value
     */
    int open();
}

Back to the top