Commit | Line | Data |
---|---|---|
90700072 BH |
1 | /********************************************************************** |
2 | * Copyright (c) 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 | package org.eclipse.tracecompass.tmf.remote.core.shell; | |
10 | ||
11 | /** | |
12 | * Interface for a providing a command output listener | |
13 | * | |
14 | * @author Bernd Hufmann | |
15 | * @since 2.0 | |
16 | */ | |
17 | public interface ICommandOutputListener { | |
18 | ||
19 | /** | |
20 | * Call back with new output String. It will provide the delta String | |
21 | * in comparison to the previous call of this method. | |
22 | * | |
23 | * The implementer of this method must not block the current thread. | |
24 | * | |
25 | * @param updatedString | |
26 | * The new outputString | |
27 | */ | |
28 | void outputUpdated(String updatedString); | |
29 | ||
30 | /** | |
31 | * Call back with new error output String. It will provide the delta String | |
32 | * in comparison to the previous call of this method. | |
33 | * | |
34 | * The implementer of this method must not block the current thread. | |
35 | * | |
36 | * @param updatedString | |
37 | * The new outputString | |
38 | */ | |
39 | void errorOutputUpdated(String updatedString); | |
40 | } |