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 * @param host the connection
59 * @return shell service subsystem, or <code>null</code> if not found.
61 public ISubSystem
getTerminalServiceSubSystem();
64 * 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.
72 * @param callback - call-back method being called when connection was finished
75 public void connect(IRSECallback callback
) throws ExecutionException
;
78 * Disconnects from the shell service sub system.
82 public void disconnect() throws ExecutionException
;
85 * Creates a command shell.
87 * @return the command shell implementation
90 public ICommandShell
createCommandShell() throws ExecutionException
;
93 * Method to add a communication listener to the connector service defined for
94 * the given connection.
96 * @param listener - listener to add
99 public void addCommunicationListener(ICommunicationsListener listener
);
102 * Method to remove a communication listener from the connector service defined for
103 * the given connection.
105 * @param listener - listener to remove
108 public void removeCommunicationListener(ICommunicationsListener listener
);