remote: provide output listener for command execution
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.remote.core / src / org / eclipse / tracecompass / tmf / remote / core / shell / ICommandOutputListener.java
diff --git a/tmf/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/shell/ICommandOutputListener.java b/tmf/org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/shell/ICommandOutputListener.java
new file mode 100644 (file)
index 0000000..492ef0f
--- /dev/null
@@ -0,0 +1,40 @@
+/**********************************************************************
+ * Copyright (c) 2015 Ericsson
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ **********************************************************************/
+package org.eclipse.tracecompass.tmf.remote.core.shell;
+
+/**
+ * Interface for a providing a command output listener
+ *
+ * @author Bernd Hufmann
+ * @since 2.0
+ */
+public interface ICommandOutputListener {
+
+    /**
+     * Call back with new output String. It will provide the delta String
+     * in comparison to the previous call of this method.
+     *
+     * The implementer of this method must not block the current thread.
+     *
+     * @param updatedString
+     *            The new outputString
+     */
+    void outputUpdated(String updatedString);
+
+    /**
+     * Call back with new error output String. It will provide the delta String
+     * in comparison to the previous call of this method.
+     *
+     * The implementer of this method must not block the current thread.
+     *
+     * @param updatedString
+     *            The new outputString
+     */
+    void errorOutputUpdated(String updatedString);
+}
This page took 0.029016 seconds and 5 git commands to generate.