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
.core
.runtime
.IProgressMonitor
;
19 * Interface for a command shell implementation
22 * @author Bernd Hufmann
24 public interface ICommandShell
{
27 * Method to connect the command shell.
29 * @throws ExecutionException
30 * If the command fails
32 public void connect() throws ExecutionException
;
35 * Method to disconnect the command shell.
37 public void disconnect();
40 * Method to execute a command on the command shell.
43 * - the command to executed
45 * - a progress monitor
46 * @return the command result
47 * @throws ExecutionException
48 * If the command fails
50 public ICommandResult
executeCommand(String command
,
51 IProgressMonitor monitor
) throws ExecutionException
;
54 * Method to execute a command on the command shell.
57 * - the command to executed
59 * - a progress monitor
60 * @param checkReturnValue
61 * - flag to indicate that the command result should be checked.
62 * If false the command result will be always 0.
63 * @return the command result
64 * @throws ExecutionException
65 * If the command fails
67 public ICommandResult
executeCommand(final String command
,
68 final IProgressMonitor monitor
, final boolean checkReturnValue
)
69 throws ExecutionException
;
This page took 0.068354 seconds and 5 git commands to generate.