Commit | Line | Data |
---|---|---|
eb1bab5b | 1 | /********************************************************************** |
00de7b32 BH |
2 | * Copyright (c) 2012, 2013 Ericsson |
3 | * | |
eb1bab5b 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 | |
00de7b32 BH |
8 | * |
9 | * Contributors: | |
eb1bab5b BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
115b4a01 | 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
eb1bab5b | 13 | |
115b4a01 | 14 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.ITraceControlComponent; |
d132bcc7 BH |
15 | import org.eclipse.rse.core.model.IHost; |
16 | ||
eb1bab5b | 17 | /** |
eb1bab5b BH |
18 | * <p> |
19 | * Interface for connection information dialog. | |
20 | * </p> | |
00de7b32 | 21 | * |
dbd4432d | 22 | * @author Bernd Hufmann |
eb1bab5b BH |
23 | */ |
24 | public interface INewConnectionDialog { | |
00de7b32 | 25 | |
eb1bab5b BH |
26 | // ------------------------------------------------------------------------ |
27 | // Accessors | |
28 | // ------------------------------------------------------------------------ | |
29 | /** | |
bbb3538a | 30 | * @return the connection name (alias). |
eb1bab5b | 31 | */ |
a6e6f7b4 | 32 | String getConnectionName(); |
eb1bab5b BH |
33 | |
34 | /** | |
bbb3538a | 35 | * @return the host name (IP address or DNS name) |
eb1bab5b | 36 | */ |
a6e6f7b4 | 37 | String getHostName(); |
00de7b32 BH |
38 | |
39 | /** | |
40 | * @return port of IP connection to be used | |
41 | */ | |
a6e6f7b4 | 42 | int getPort(); |
00de7b32 | 43 | |
d132bcc7 BH |
44 | /** |
45 | * Sets the trace control root | |
46 | * @param parent - the trace control parent | |
47 | */ | |
a6e6f7b4 | 48 | void setTraceControlParent(ITraceControlComponent parent); |
00de7b32 | 49 | |
d132bcc7 BH |
50 | /** |
51 | * Sets the available hosts to select. | |
52 | * @param hosts - the available hosts | |
53 | */ | |
a6e6f7b4 | 54 | void setHosts(IHost[] hosts); |
eb1bab5b | 55 | |
00de7b32 BH |
56 | /** |
57 | * Set the port of the IP connection to be used. | |
58 | * @param port - the IP port to set | |
59 | */ | |
a6e6f7b4 | 60 | void setPort(int port); |
00de7b32 | 61 | |
eb1bab5b BH |
62 | // ------------------------------------------------------------------------ |
63 | // Operations | |
64 | // ------------------------------------------------------------------------ | |
65 | /** | |
66 | * @return returns the open return value | |
67 | */ | |
68 | int open(); | |
69 | } |