analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.remote.core / src / org / eclipse / tracecompass / tmf / remote / core / proxy / IConnectionFactory.java
1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.tracecompass.tmf.remote.core.proxy;
13
14 import java.net.URI;
15
16 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import org.eclipse.remote.core.IRemoteConnection;
18 import org.eclipse.remote.core.exception.RemoteConnectionException;
19
20 /**
21 *
22 * Interface to create a {@link IRemoteConnection} identified by an URI.
23 *
24 * @author Bernd Hufmann
25 *
26 */
27 @NonNullByDefault
28 public interface IConnectionFactory {
29 /**
30 * Creates an {@link IRemoteConnection} for the given URI.
31 * @param hostUri
32 * the host URI to connect to
33 * @param hostName
34 * the host name
35 * @return {@link IRemoteConnection} for given URI
36 *
37 * @throws RemoteConnectionException in case of an error
38 */
39 IRemoteConnection createConnection(URI hostUri, String hostName) throws RemoteConnectionException;
40 }
This page took 0.031911 seconds and 5 git commands to generate.