tmf: lttngControl: Separate STDERR from output and create errorOutput
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / remote / ICommandResult.java
CommitLineData
eb1bab5b 1/**********************************************************************
a6e6f7b4 2 * Copyright (c) 2012, 2013 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 *********************************************************************/
8e8c0226 12package org.eclipse.linuxtools.internal.lttng2.control.ui.views.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 */
21public interface ICommandResult {
22 /**
cfdb727a
AM
23 * The result of the command.
24 *
25 * @return 0 if successful else >0
eb1bab5b 26 */
a6e6f7b4 27 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 34 */
a6e6f7b4 35 void setResult(int result);
eb1bab5b
BH
36
37 /**
38 * @return returns the command output.
39 */
a6e6f7b4 40 String[] getOutput();
eb1bab5b
BH
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 47 */
a6e6f7b4 48 void setOutput(String[] output);
6418ef54
JRJ
49
50 /**
51 * The error output of the command.
52 *
53 * @return returns the command error output.
54 */
55 String[] getErrorOutput();
56
57 /**
58 * Sets the command output.
59 *
60 * @param output
61 * The output (as an array of Strings) to assign
62 */
63 void setErrorOutput(String[] output);
eb1bab5b 64}
This page took 0.054647 seconds and 5 git commands to generate.