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
.service
;
14 import org
.eclipse
.core
.commands
.ExecutionException
;
15 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
18 * <b><u>ICommandShell</u></b>
20 * Interface for a command shell implementation
23 public interface ICommandShell
{
26 * Method to connect the command shell.
27 * @throws ExecutionException
29 public void connect() throws ExecutionException
;
32 * Method to disconnect the command shell.
34 public void disconnect();
37 * Method to execute a command on the command shell.
39 * @param command - the command to executed
40 * @param monitor - a progress monitor
41 * @return the command result
42 * @throws ExecutionException
44 public ICommandResult
executeCommand(String command
, IProgressMonitor monitor
) throws ExecutionException
;
47 * Method to execute a command on the command shell.
49 * @param command - the command to executed
50 * @param monitor - a progress monitor
51 * @param checkReturnValue - flag to indicate that the command result should be checked. If false the command result will be always 0.
52 * @return the command result
53 * @throws ExecutionException
55 public ICommandResult
executeCommand(final String command
, final IProgressMonitor monitor
, final boolean checkReturnValue
) throws ExecutionException
;
This page took 0.040049 seconds and 5 git commands to generate.