3c2df382b9c2bbaf2d98799ce966b9886bc9ca17
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.remote.core / src / org / eclipse / tracecompass / tmf / remote / core / shell / ICommandResult.java
1 /**********************************************************************
2 * Copyright (c) 2012, 2015 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Bernd Hufmann - Initial API and implementation
11 *********************************************************************/
12 package org.eclipse.tracecompass.tmf.remote.core.shell;
13
14 import java.util.List;
15
16
17 /**
18 * Interface for providing command execution result.
19 *
20 * @author Bernd Hufmann
21 */
22 public interface ICommandResult {
23 /**
24 * The result of the command.
25 *
26 * @return 0 if successful else >0
27 */
28 int getResult();
29
30 /**
31 * Return the command output.
32 *
33 * It should not be null, but could be empty.
34 * It should return an immutable list.
35 *
36 * @return the command output.
37 */
38 List<String> getOutput();
39
40 /**
41 * Return the command error output.
42 *
43 * It should not be null, but could be empty.
44 * It should return an immutable list.
45 *
46 * @return the command error output.
47 */
48 List<String> getErrorOutput();
49 }
This page took 0.033301 seconds and 4 git commands to generate.