1 /*******************************************************************************
2 * Copyright (c) 2015 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 *******************************************************************************/
12 package org
.eclipse
.tracecompass
.tmf
.remote
.core
.proxy
;
16 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
17 import org
.eclipse
.remote
.core
.IRemoteConnection
;
18 import org
.eclipse
.remote
.core
.exception
.RemoteConnectionException
;
22 * Interface to create a {@link IRemoteConnection} identified by an URI.
24 * @author Bernd Hufmann
28 public interface IConnectionFactory
{
30 * Creates an {@link IRemoteConnection} for the given URI.
32 * the host URI to connect to
35 * @return {@link IRemoteConnection} for given URI
37 * @throws RemoteConnectionException in case of an error
39 IRemoteConnection
createConnection(URI hostUri
, String hostName
) throws RemoteConnectionException
;