X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.ui%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Flttng2%2Fui%2Fviews%2Fcontrol%2Fremote%2FIRemoteSystemProxy.java;h=295a5cdf877a88d0e3692e29ebd55d5632375227;hb=a6e6f7b4c37dc5adce8b2deeaf1d360b1284ad46;hp=697a5a1dd8d01ca98cb32cc9f2b934fcac115803;hpb=6de7a2bdb44533609f25e7a0629cbfb85c90d0b3;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/remote/IRemoteSystemProxy.java b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/remote/IRemoteSystemProxy.java index 697a5a1dd8..295a5cdf87 100644 --- a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/remote/IRemoteSystemProxy.java +++ b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/remote/IRemoteSystemProxy.java @@ -1,18 +1,17 @@ /********************************************************************** - * Copyright (c) 2012 Ericsson - * + * Copyright (c) 2012, 2013 Ericsson + * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: + * + * Contributors: * Bernd Hufmann - Initial API and implementation **********************************************************************/ package org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote; import org.eclipse.core.commands.ExecutionException; -import org.eclipse.linuxtools.internal.lttng2.ui.views.control.service.ICommandShell; import org.eclipse.rse.core.model.IRSECallback; import org.eclipse.rse.core.subsystems.ICommunicationsListener; import org.eclipse.rse.core.subsystems.ISubSystem; @@ -21,90 +20,114 @@ import org.eclipse.rse.services.terminals.ITerminalService; import org.eclipse.rse.subsystems.files.core.servicesubsystem.IFileServiceSubSystem; /** - * IRemoteSystemProxy *

* Remote System Proxy interface. *

+ * + * @author Bernd Hufmann */ public interface IRemoteSystemProxy { + // ------------------------------------------------------------------------ + // Constants + // ------------------------------------------------------------------------ + /** + * Invalid port number for IP based connections. + */ + public final static int INVALID_PORT_NUMBER = -1; + // ------------------------------------------------------------------------ // Operations // ------------------------------------------------------------------------ /** * Find the first shell service. - * + * * @return shell service object, or null if not found. */ - public IShellService getShellService(); + IShellService getShellService(); /** * Find the first terminal service. - * + * * @return shell service object, or null if not found. */ - public ITerminalService getTerminalService(); + ITerminalService getTerminalService(); /** * Find the first IShellServiceSubSystem service. - * + * * @return shell service subsystem, or null if not found. */ - public ISubSystem getShellServiceSubSystem(); + ISubSystem getShellServiceSubSystem(); /** * Find the first ITerminalServiceSubSystem service. - * - * @param host the connection + * * @return shell service subsystem, or null if not found. */ - public ISubSystem getTerminalServiceSubSystem(); - + ISubSystem getTerminalServiceSubSystem(); + /** * Finds the File Service Subsystem. - * @return file service subsystem, or null if not found. + * + * @return file service subsystem, or null if not found. */ - public IFileServiceSubSystem getFileServiceSubSystem(); - + IFileServiceSubSystem getFileServiceSubSystem(); + + /** + * @return port of IP connection to be used + */ + int getPort(); + + /** + * Sets the port of the IP connection. + * @param port - the IP port to set + */ + void setPort(int port); + /** - * Connects the shell service sub system. - * - * @param callback - call-back method being called when connection was finished - * @throws Exception + * Connects the shell service sub system. + * + * @param callback + * - call-back method being called when connection was finished + * @throws ExecutionException + * If the connection fails */ - public void connect(IRSECallback callback) throws ExecutionException; + void connect(IRSECallback callback) throws ExecutionException; /** - * Disconnects from the shell service sub system. - * - * @throws Exception + * Disconnects from the shell service sub system. + * + * @throws ExecutionException + * If the disconnect command fails */ - public void disconnect() throws ExecutionException; + void disconnect() throws ExecutionException; /** - * Creates a command shell. - * + * Creates a command shell. + * * @return the command shell implementation - * @throws Exception + * @throws ExecutionException + * If the command fails */ - public ICommandShell createCommandShell() throws ExecutionException; + ICommandShell createCommandShell() throws ExecutionException; /** - * Method to add a communication listener to the connector service defined for - * the given connection. - * - * @param listener - listener to add - * @throws Exception + * Method to add a communication listener to the connector service defined + * for the given connection. + * + * @param listener + * - listener to add */ - public void addCommunicationListener(ICommunicationsListener listener); + void addCommunicationListener(ICommunicationsListener listener); /** - * Method to remove a communication listener from the connector service defined for - * the given connection. - * - * @param listener - listener to remove - * @throws Exception + * Method to remove a communication listener from the connector service + * defined for the given connection. + * + * @param listener + * - listener to remove */ - public void removeCommunicationListener(ICommunicationsListener listener); + void removeCommunicationListener(ICommunicationsListener listener); } \ No newline at end of file