Class ContinuousExecSpec


  • public class ContinuousExecSpec
    extends java.lang.Object
    Arguments passed to the continuous exec worker process.

    The worker is passed an InputStream and an OutputStream. These streams are used to communicate with the worker.

    Worker requests: The protocol consists of simple JSON-encoded messages, where each message is terminated by a newline. The worker receives a {"command": "changed","paths": [...list of changed watched paths....]} message whenever a change is detected. After the build is complete, a {"command":"buildFinished"} message is sent. When the build has failed, this message contains an additional "failure" key with the error message.

    Worker responses: After startup, the worker must send a message with an empty object {}. The same message must be sent again after processing a request.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream()  
      java.io.OutputStream getOutputStream()  
      • Methods inherited from class java.lang.Object

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

      • getInputStream

        public java.io.InputStream getInputStream()
        Returns:
        The input stream receiving commands for the worker (see class description)
      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Returns:
        The output stream where the worker should reply after commands (see class description)