1 /**********************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 * Bernd Hufmann - Updated for support of LTTng Tools 2.1
12 **********************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng2
.stubs
.dialogs
;
15 import org
.eclipse
.linuxtools
.internal
.lttng2
.core
.control
.model
.ISessionInfo
;
16 import org
.eclipse
.linuxtools
.internal
.lttng2
.core
.control
.model
.impl
.SessionInfo
;
17 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.dialogs
.ICreateSessionDialog
;
18 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.TraceSessionGroup
;
21 * Create session dialog stub implementation.
23 @SuppressWarnings("javadoc")
24 public class CreateSessionDialogStub
implements ICreateSessionDialog
{
26 public String fName
= "mysession";
27 public String fPath
= null;
28 private boolean fIsStreamedTrace
= false;
29 private String fNetworkUrl
= null;
30 private String fControlUrl
= null;
31 private String fDataUrl
= null;
32 private boolean fIsSnapshot
;
35 public void initialize(TraceSessionGroup group
) {
43 public void setSessionPath(String path
) {
47 public void setSessionName(String name
) {
51 public void setStreamedTrace(boolean isStreamedTrace
) {
52 fIsStreamedTrace
= isStreamedTrace
;
55 public void setNetworkUrl(String fNetworkUrl
) {
56 this.fNetworkUrl
= fNetworkUrl
;
59 public void setControlUrl(String fControlUrl
) {
60 this.fControlUrl
= fControlUrl
;
63 public void setDataUrl(String fDataUrl
) {
64 this.fDataUrl
= fDataUrl
;
67 public void setSnapshot(boolean isSnapshot
) {
68 fIsSnapshot
= isSnapshot
;
72 public ISessionInfo
getParameters() {
73 ISessionInfo sessionInfo
= new SessionInfo(fName
);
75 if (fIsStreamedTrace
) {
76 sessionInfo
.setNetworkUrl(fNetworkUrl
);
77 sessionInfo
.setControlUrl(fControlUrl
);
78 sessionInfo
.setDataUrl(fDataUrl
);
79 sessionInfo
.setStreamedTrace(true);
80 } else if (fPath
!= null) {
81 sessionInfo
.setSessionPath(fPath
);
84 sessionInfo
.setSnapshot(fIsSnapshot
);
This page took 0.032138 seconds and 5 git commands to generate.