public abstract static class CmdSystem.PersistentLogLines extends java.lang.Object implements ResponseHandler<java.lang.String[]>
Constructor and Description |
---|
PersistentLogLines() |
Modifier and Type | Method and Description |
---|---|
abstract void |
finished(java.lang.Exception e)
Called when completed.
|
abstract void |
newLine(java.lang.String line)
Called for each line received.
|
void |
responseException(Response<java.lang.String[]> r,
java.lang.Exception e)
Invoked when a command resulted in an exception.
|
void |
responseValue(Response<java.lang.String[]> r,
java.lang.String[] value)
Invoked when a response arrives.
|
public abstract void newLine(java.lang.String line)
public abstract void finished(java.lang.Exception e)
e
- Filled if it was finished because of an error, otherwise null.public void responseValue(Response<java.lang.String[]> r, java.lang.String[] value)
ResponseHandler
responseValue
in interface ResponseHandler<java.lang.String[]>
r
- The response object which issues the eventvalue
- The value of the response.public void responseException(Response<java.lang.String[]> r, java.lang.Exception e)
ResponseHandler
responseException
in interface ResponseHandler<java.lang.String[]>
r
- The response object which issues the evente
- The exception.