1 package org
.eclipse
.linuxtools
.lttng
.stubs
.service
;
3 import org
.eclipse
.core
.commands
.ExecutionException
;
4 import org
.eclipse
.core
.runtime
.Status
;
5 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.remote
.IRemoteSystemProxy
;
6 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.service
.ICommandShell
;
7 import org
.eclipse
.rse
.core
.model
.IRSECallback
;
8 import org
.eclipse
.rse
.core
.subsystems
.ICommunicationsListener
;
9 import org
.eclipse
.rse
.core
.subsystems
.ISubSystem
;
10 import org
.eclipse
.rse
.services
.shells
.IShellService
;
11 import org
.eclipse
.rse
.services
.terminals
.ITerminalService
;
12 import org
.eclipse
.rse
.subsystems
.files
.core
.servicesubsystem
.IFileServiceSubSystem
;
14 public class TestRemoteSystemProxy
implements IRemoteSystemProxy
{
17 public IShellService
getShellService() {
22 public ITerminalService
getTerminalService() {
27 public ISubSystem
getShellServiceSubSystem() {
32 public ISubSystem
getTerminalServiceSubSystem() {
36 public IFileServiceSubSystem
getFileServiceSubSystem() {
41 public void connect(IRSECallback callback
) throws ExecutionException
{
42 if (callback
!= null) {
43 callback
.done(Status
.OK_STATUS
, null);
48 public void disconnect() throws ExecutionException
{
52 public ICommandShell
createCommandShell() throws ExecutionException
{
53 ICommandShell shell
= CommandShellFactory
.getInstance().getShellForSessionNames();
58 public void addCommunicationListener(ICommunicationsListener listener
) {
62 public void removeCommunicationListener(ICommunicationsListener listener
) {