Commit | Line | Data |
---|---|---|
eb1bab5b BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2012 Ericsson | |
cfdb727a | 3 | * |
eb1bab5b BH |
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 | |
cfdb727a AM |
8 | * |
9 | * Contributors: | |
eb1bab5b BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | *********************************************************************/ | |
9315aeee | 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote; |
eb1bab5b BH |
13 | |
14 | /** | |
eb1bab5b BH |
15 | * <p> |
16 | * Interface for providing command execution result. | |
17 | * </p> | |
cfdb727a | 18 | * |
dbd4432d | 19 | * @author Bernd Hufmann |
eb1bab5b BH |
20 | */ |
21 | public interface ICommandResult { | |
22 | /** | |
cfdb727a AM |
23 | * The result of the command. |
24 | * | |
25 | * @return 0 if successful else >0 | |
eb1bab5b | 26 | */ |
cfdb727a | 27 | public int getResult(); |
eb1bab5b BH |
28 | |
29 | /** | |
30 | * Sets the command result value. | |
cfdb727a | 31 | * |
eb1bab5b | 32 | * @param result |
cfdb727a | 33 | * The integer result to set |
eb1bab5b BH |
34 | */ |
35 | public void setResult(int result); | |
36 | ||
37 | /** | |
38 | * @return returns the command output. | |
39 | */ | |
40 | public String[] getOutput(); | |
41 | ||
42 | /** | |
43 | * Sets the command output. | |
cfdb727a | 44 | * |
eb1bab5b | 45 | * @param output |
cfdb727a | 46 | * The output (as an array of Strings) to assign |
eb1bab5b BH |
47 | */ |
48 | public void setOutput(String[] output); | |
49 | } |