Class XmlRpcAgentLogListener

    • Field Detail

      • myMethodPrefix

        protected final String myMethodPrefix
    • Constructor Detail

      • XmlRpcAgentLogListener

        public XmlRpcAgentLogListener​(int localPort)
        This constructor must be used in runtime only, i.e. when test listener reports messages to localhost
        Parameters:
        localPort - port
      • XmlRpcAgentLogListener

        protected XmlRpcAgentLogListener​(String serverUrl,
                                         int connectionTimeout,
                                         KeyStore trustStore)
    • Method Detail

      • log

        public boolean log​(String buildId,
                           Vector messagesXml)
        Specified by:
        log in interface AgentLogListener
        Parameters:
        buildId - - build id
        messagesXml - - message in XML format
        Returns:
        - returns value which indicates, whether this message was accepted by server; if false, no other messages with given buildId should be sent for corresponding buildId
      • buildFinished

        public boolean buildFinished​(String buildId,
                                     Date finishDate,
                                     boolean buildFailed)
        Specified by:
        buildFinished in interface AgentLogListener
        Parameters:
        buildId - - build id
        finishDate - - finish date
        buildFailed - - build failed sign
        Returns:
        - fake return type to conform XML-RPC requirements
      • buildDetachedFromAgent

        public boolean buildDetachedFromAgent​(String buildId,
                                              String lastStepId)
        Description copied from interface: AgentLogListener
        Indicates that the build tasks are finished on the agent but the build itself should continue until some external process finishes it
        Specified by:
        buildDetachedFromAgent in interface AgentLogListener
        Parameters:
        buildId - - build id
        lastStepId - - id of last step
        Returns:
        - fake return type to conform XML-RPC requirements
      • buildInterrupted

        public boolean buildInterrupted​(String buildId,
                                        String comment,
                                        boolean needRequeue)
        Specified by:
        buildInterrupted in interface AgentLogListener
        comment - a comment to interrupt the build with
        needRequeue - if true, build should be re-added to the build queue
        Returns:
        fake value, to conform XML-RPC requirements
      • isBuildFailing

        public boolean isBuildFailing​(String buildId)
                               throws InterruptedException
        Description copied from interface: AgentLogListener
        Checks for build status on the build server. The call is synchronous, it makes sure that previous logged messages are sent to the server.
        Specified by:
        isBuildFailing in interface AgentLogListener
        Returns:
        true if build status on the server is failing
        Throws:
        InterruptedException - if action was removed from the queue for some reason, and could not be completed (for instance, build is obsolete)