1 /**********************************************************************
2 * Copyright (c) 2012 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
.linuxtools
.internal
.lttng2
.ui
.views
.control
.remote
;
14 import org
.eclipse
.core
.commands
.ExecutionException
;
15 import org
.eclipse
.rse
.core
.model
.IRSECallback
;
16 import org
.eclipse
.rse
.core
.subsystems
.ICommunicationsListener
;
17 import org
.eclipse
.rse
.core
.subsystems
.ISubSystem
;
18 import org
.eclipse
.rse
.services
.shells
.IShellService
;
19 import org
.eclipse
.rse
.services
.terminals
.ITerminalService
;
20 import org
.eclipse
.rse
.subsystems
.files
.core
.servicesubsystem
.IFileServiceSubSystem
;
23 * <b><u>IRemoteSystemProxy</u></b>
25 * Remote System Proxy interface.
28 public interface IRemoteSystemProxy
{
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
34 * Find the first shell service.
36 * @return shell service object, or <code>null</code> if not found.
38 public IShellService
getShellService();
41 * Find the first terminal service.
43 * @return shell service object, or <code>null</code> if not found.
45 public ITerminalService
getTerminalService();
48 * Find the first IShellServiceSubSystem service.
50 * @return shell service subsystem, or <code>null</code> if not found.
52 public ISubSystem
getShellServiceSubSystem();
55 * Find the first ITerminalServiceSubSystem service.
57 * @param host the connection
58 * @return shell service subsystem, or <code>null</code> if not found.
60 public ISubSystem
getTerminalServiceSubSystem();
63 * Finds the File Service Subsystem.
64 * @return file service subsystem, or <code>null</code> if not found.
66 public IFileServiceSubSystem
getFileServiceSubSystem();
69 * Connects the shell service sub system.
71 * @param callback - call-back method being called when connection was finished
74 public void connect(IRSECallback callback
) throws ExecutionException
;
77 * Disconnects from the shell service sub system.
81 public void disconnect() throws ExecutionException
;
84 * Creates a command shell.
86 * @return the command shell implementation
89 public ICommandShell
createCommandShell() throws ExecutionException
;
92 * Method to add a communication listener to the connector service defined for
93 * the given connection.
95 * @param listener - listener to add
98 public void addCommunicationListener(ICommunicationsListener listener
);
101 * Method to remove a communication listener from the connector service defined for
102 * the given connection.
104 * @param listener - listener to remove
107 public void removeCommunicationListener(ICommunicationsListener listener
);