Package jetbrains.buildServer.agent.impl
Class BuildAgentShutdownTask
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.BuildAgentShutdownTask
-
public class BuildAgentShutdownTask extends Object
- Author:
- Eugene Petrenko Created: 21.07.2009 18:18:08
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BuildAgentShutdownTask.BuildAgentShutdownCallback
Declares all agent shutdown steps that has to be performed.static interface
BuildAgentShutdownTask.Order
-
Constructor Summary
Constructors Constructor Description BuildAgentShutdownTask(BuildAgentShutdownTask.BuildAgentShutdownCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isShutdownFinished()
boolean
isShutdownScheduled()
void
shutdownAgent(boolean callSystemExit, AgentExitCode exitCode)
boolean
waitForShutdown()
Waits for shutdown if it was scheduled
-
-
-
Constructor Detail
-
BuildAgentShutdownTask
public BuildAgentShutdownTask(BuildAgentShutdownTask.BuildAgentShutdownCallback callback)
-
-
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)
-
-