public class InstallReceiver extends MultiLineReceiver
Use a combination of isSuccessfullyCompleted() and getErrorMessage() to
decide if the installation was successful and what was the error.
| Constructor and Description |
|---|
InstallReceiver() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorMessage()
Returns the error message from the installation.
|
java.lang.String |
getSuccessMessage()
Returns the success message from the installation.
|
boolean |
isCancelled()
Cancel method to stop the execution of the remote shell command.
|
boolean |
isSuccessfullyCompleted()
Returns true if the installation was fully successful.
|
void |
processNewLines(java.lang.String[] lines)
Called when new lines are being received by the remote process.
|
addOutput, done, flush, setTrimLinepublic void processNewLines(@NonNull
java.lang.String[] lines)
MultiLineReceiverIt is guaranteed that the lines are complete when they are given to this method.
processNewLines in class MultiLineReceiverlines - The array containing the new lines.public boolean isCancelled()
IShellOutputReceiverpublic java.lang.String getErrorMessage()
public java.lang.String getSuccessMessage()
public boolean isSuccessfullyCompleted()
getErrorMessage() returns
null and isSuccessfullyCompleted() returns false, a timeout on device side was most
likely encountered.