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
;
24 * Remote System Proxy interface.
27 * @author Bernd Hufmann
29 public interface IRemoteSystemProxy
{
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
35 * Find the first shell service.
37 * @return shell service object, or <code>null</code> if not found.
39 public IShellService
getShellService();
42 * Find the first terminal service.
44 * @return shell service object, or <code>null</code> if not found.
46 public ITerminalService
getTerminalService();
49 * Find the first IShellServiceSubSystem service.
51 * @return shell service subsystem, or <code>null</code> if not found.
53 public ISubSystem
getShellServiceSubSystem();
56 * Find the first ITerminalServiceSubSystem service.
58 * @return shell service subsystem, or <code>null</code> if not found.
60 public ISubSystem
getTerminalServiceSubSystem();
63 * Finds the File Service Subsystem.
65 * @return file service subsystem, or <code>null</code> if not found.
67 public IFileServiceSubSystem
getFileServiceSubSystem();
70 * Connects the shell service sub system.
73 * - call-back method being called when connection was finished
74 * @throws ExecutionException
75 * If the connection fails
77 public void connect(IRSECallback callback
) throws ExecutionException
;
80 * Disconnects from the shell service sub system.
82 * @throws ExecutionException
83 * If the disconnect command fails
85 public void disconnect() throws ExecutionException
;
88 * Creates a command shell.
90 * @return the command shell implementation
91 * @throws ExecutionException
92 * If the command fails
94 public ICommandShell
createCommandShell() throws ExecutionException
;
97 * Method to add a communication listener to the connector service defined
98 * for the given connection.
103 public void addCommunicationListener(ICommunicationsListener listener
);
106 * Method to remove a communication listener from the connector service
107 * defined for the given connection.
110 * - listener to remove
112 public void removeCommunicationListener(ICommunicationsListener listener
);