blob: f469d2b0a76c2aeefa90bb7a717a452673861459 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/**********************************************************************
* Copyright (c) 2012, 2015 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:
* Bernd Hufmann - Initial API and implementation
* Markus Schorn - Bug 448058: Use org.eclipse.remote in favor of RSE
**********************************************************************/
package org.eclipse.tracecompass.tmf.remote.core.shell;
import java.util.List;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.annotation.Nullable;
/**
* Interface for a command shell implementation
*
* @author Bernd Hufmann
*/
public interface ICommandShell {
/**
* Method to disconnect the command shell.
*/
void dispose();
/**
* Method to execute a command on the command shell.
*
* @param command
* The command to executed
* @param monitor
* A progress monitor
* @return a {@link ICommandResult} instance
* @throws ExecutionException
* If the command fails
*/
ICommandResult executeCommand(List<String> command, @Nullable IProgressMonitor monitor) throws ExecutionException;
}
|