3b23d358b06d287e567565998bb202e33ebb684b
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / remote / ICommandResult.java
1 /**********************************************************************
2 * Copyright (c) 2012, 2013 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.linuxtools.internal.lttng2.control.ui.views.remote;
13
14 /**
15 * <p>
16 * Interface for providing command execution result.
17 * </p>
18 *
19 * @author Bernd Hufmann
20 */
21 public interface ICommandResult {
22 /**
23 * The result of the command.
24 *
25 * @return 0 if successful else >0
26 */
27 int getResult();
28
29 /**
30 * Sets the command result value.
31 *
32 * @param result
33 * The integer result to set
34 */
35 void setResult(int result);
36
37 /**
38 * @return returns the command output.
39 */
40 String[] getOutput();
41
42 /**
43 * Sets the command output.
44 *
45 * @param output
46 * The output (as an array of Strings) to assign
47 */
48 void setOutput(String[] output);
49 }
This page took 0.033566 seconds and 4 git commands to generate.