Class BuildAgentShutdownTask


  • public class BuildAgentShutdownTask
    extends Object
    Author:
    Eugene Petrenko Created: 21.07.2009 18:18:08
    • Method Detail

      • isShutdownScheduled

        public boolean isShutdownScheduled()
      • isShutdownFinished

        public boolean isShutdownFinished()
      • waitForShutdown

        public boolean waitForShutdown()
                                throws InterruptedException
        Waits for shutdown if it was scheduled
        Returns:
        true if shutdown was finished, false if no shutdown is scheduled
        Throws:
        InterruptedException - on interrupt
      • shutdownAgent

        public void shutdownAgent​(boolean callSystemExit,
                                  @NotNull
                                  AgentExitCode exitCode)