Package org.km3net.clb.remote
Class CmdSystem.PersistentLogLines
- java.lang.Object
-
- org.km3net.clb.remote.CmdSystem.PersistentLogLines
-
- All Implemented Interfaces:
ResponseHandler<java.lang.String[]>
- Enclosing class:
- CmdSystem
public abstract static class CmdSystem.PersistentLogLines extends java.lang.Object implements ResponseHandler<java.lang.String[]>
Helper class to get the last log lies.
-
-
Constructor Summary
Constructors Constructor Description PersistentLogLines()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidfinished(java.lang.Exception e)Called when completed.abstract voidnewLine(java.lang.String line)Called for each line received.voidresponseException(Response<java.lang.String[]> r, java.lang.Exception e)Invoked when a command resulted in an exception.voidresponseValue(Response<java.lang.String[]> r, java.lang.String[] value)Invoked when a response arrives.
-
-
-
Method Detail
-
newLine
public abstract void newLine(java.lang.String line)
Called for each line received.
-
finished
public abstract void finished(java.lang.Exception e)
Called when completed.- Parameters:
e- Filled if it was finished because of an error, otherwise null.
-
responseValue
public void responseValue(Response<java.lang.String[]> r, java.lang.String[] value)
Description copied from interface:ResponseHandlerInvoked when a response arrives.- Specified by:
responseValuein interfaceResponseHandler<java.lang.String[]>- Parameters:
r- The response object which issues the eventvalue- The value of the response.
-
responseException
public void responseException(Response<java.lang.String[]> r, java.lang.Exception e)
Description copied from interface:ResponseHandlerInvoked when a command resulted in an exception.- Specified by:
responseExceptionin interfaceResponseHandler<java.lang.String[]>- Parameters:
r- The response object which issues the evente- The exception.
-
-