Class 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.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PersistentLogLines

        public PersistentLogLines()
    • 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: ResponseHandler
        Invoked when a response arrives.
        Specified by:
        responseValue in interface ResponseHandler<java.lang.String[]>
        Parameters:
        r - The response object which issues the event
        value - The value of the response.
      • responseException

        public void responseException​(Response<java.lang.String[]> r,
                                      java.lang.Exception e)
        Description copied from interface: ResponseHandler
        Invoked when a command resulted in an exception.
        Specified by:
        responseException in interface ResponseHandler<java.lang.String[]>
        Parameters:
        r - The response object which issues the event
        e - The exception.