1 /**********************************************************************
2 * Copyright (c) 2012, 2015 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 * Markus Schorn - Bug 448058: Use org.eclipse.remote in favor of RSE
12 **********************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.remote
.core
.shell
;
15 import java
.util
.List
;
17 import org
.eclipse
.core
.commands
.ExecutionException
;
18 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
22 * Interface for a command shell implementation
25 * @author Bernd Hufmann
27 public interface ICommandShell
{
30 * Method to connect the command shell.
32 * @throws ExecutionException
33 * If the command fails
35 void connect() throws ExecutionException
;
38 * Method to disconnect the command shell.
43 * Method to execute a command on the command shell.
46 * - the command to executed
48 * - a progress monitor
49 * @return the command result
50 * @throws ExecutionException
51 * If the command fails
53 ICommandResult
executeCommand(List
<String
> command
,
54 IProgressMonitor monitor
) throws ExecutionException
;
This page took 0.033548 seconds and 5 git commands to generate.