Interface BuildAgent

    • Method Detail

      • start

        void start()
        starts agent
      • shutdown

        boolean shutdown()
        immediate shutdown, running build will be terminated
        Returns:
        true
      • shutdownWaitForBuild

        boolean shutdownWaitForBuild()
        shutdown after build has finished
        Returns:
        true
      • getId

        java.lang.Integer getId()
        Agent id.
        Returns:
        Agent id
      • getBuildId

        @Nullable
        java.lang.String getBuildId()
        Current build id
        Returns:
        Current build id
      • ensureIdle

        void ensureIdle()
        Blocks until currently running build finishes and all build messages are sent to the server
      • ensureNoPendingCommands

        void ensureNoPendingCommands()
        Blocks until all pending build messages are sent to the server
      • init

        @Deprecated
        void init​(java.lang.String[] args)
        Deprecated.
        should not be called from plugin code
      • getRunners

        java.util.Collection<AgentBuildRunner> getRunners()
        Returns array of registered runners
        Returns:
        array of registered runners
      • getServerProxy

        @Nullable
        Server getServerProxy()
        Returns:
        remote server proxy
      • getConfiguration

        BuildAgentConfiguration getConfiguration()
        Returns agent configuration
        Returns:
        agent configuration
      • registerOnBuildServer

        boolean registerOnBuildServer​(java.lang.String buildId)
        Register on server
        Parameters:
        buildId - running build id
        Returns:
        success flag
      • unregisterFromBuildServer

        void unregisterFromBuildServer()
        Disconnect build agent from server
      • isRunning

        boolean isRunning()
        Agent is running build
        Returns:
        running flag
      • getXmlRpcHandlerManager

        @Deprecated
        XmlRpcHandlerManager getXmlRpcHandlerManager()
        Deprecated.
        since 9.1 use ServerCommandsHandlersRegistry. Handlers registered using this method will be available only by XML RPC.
        XML-RPC handler manager to manage XML-RPC handlers
        Returns:
        XML-RPC handler manager to register/unregister handlers