X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.ui%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Flttng2%2Fui%2Fviews%2Fcontrol%2Fdialogs%2FICreateSessionDialog.java;h=141325fc9911ab95680ce7b2638588ddf3359572;hb=a6e6f7b4c37dc5adce8b2deeaf1d360b1284ad46;hp=7b4e24e02fdd8dbe46acb5cceb694341ab4f32ac;hpb=7179cae2ac2c6dfc0fab1379e050ed329ae9758c;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/ICreateSessionDialog.java b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/ICreateSessionDialog.java index 7b4e24e02f..141325fc99 100644 --- a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/ICreateSessionDialog.java +++ b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/ICreateSessionDialog.java @@ -1,49 +1,81 @@ /********************************************************************** - * Copyright (c) 2012 Ericsson - * + * Copyright (c) 2012, 2013 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: + * + * Contributors: * Bernd Hufmann - Initial API and implementation + * Bernd Hufmann - Updated for support of LTTng Tools 2.1 **********************************************************************/ package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup; /** - * ICreateSessionDialog *

* Interface for create session dialog. *

+ * + * @author Bernd Hufmann */ public interface ICreateSessionDialog { - + // ------------------------------------------------------------------------ // Accessors // ------------------------------------------------------------------------ /** * @return the session name. */ - public String getSessionName(); + String getSessionName(); /** * @return the session path (null for default path) */ - public String getSessionPath(); - + String getSessionPath(); + /** * @return true for default location else false */ - public boolean isDefaultSessionPath(); - + boolean isDefaultSessionPath(); + /** - * Set trace session group. + * Initializes the dialog box. * @param group - the session group */ - public void setTraceSessionGroup(TraceSessionGroup group); + void initialize(TraceSessionGroup group); + + /** + * @return true if traces is to be streamed else false. + */ + 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. + */ + 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. + */ + 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. + */ + String getDataUrl(); // ------------------------------------------------------------------------ // Operations