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 interfaceBuildAgentShutdownTask.BuildAgentShutdownCallbackDeclares all agent shutdown steps that has to be performed.static interfaceBuildAgentShutdownTask.Order
-
Constructor Summary
Constructors Constructor Description BuildAgentShutdownTask(BuildAgentShutdownTask.BuildAgentShutdownCallback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisShutdownFinished()booleanisShutdownScheduled()voidshutdownAgent(boolean callSystemExit, AgentExitCode exitCode)booleanwaitForShutdown()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 InterruptedExceptionWaits 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)
-
-