com.atlassian.bamboo.build
Class DefaultStopBuildManager

java.lang.Object
  extended by com.atlassian.bamboo.build.DefaultStopBuildManager
All Implemented Interfaces:
StopBuildManager

public class DefaultStopBuildManager
extends java.lang.Object
implements StopBuildManager


Constructor Summary
DefaultStopBuildManager()
           
 
Method Summary
 void cancelAllBuilds(PlanKey planKey, boolean abandonResult)
          Will stop all builds running for plan identified by PlanKey
 void cancelAllBuilds(java.lang.String planKey, boolean abandonResult)
          Will stop all builds running for plan identified by planKey
 void cancelBuild(PlanResultKey planResultKey, boolean abandonResult)
          Cancel a running build optionally abandoning the result
 void cancelBuild(java.lang.String planResultKey, boolean abandonResult)
          Cancel a running build optionally abandoning the result
 void setAgentCommandSender(AgentCommandSender agentCommandSender)
           
 void setBuildQueueManager(BuildQueueManager buildQueueManager)
           
 void setEventManager(com.atlassian.event.EventManager eventManager)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
           
 void setPlanManager(PlanManager planManager)
           
 void setScheduler(org.quartz.Scheduler scheduler)
           
 void stopAgentNicely(BuildAgent buildAgent)
          Will tell an agent to stop after it's finished the current build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStopBuildManager

public DefaultStopBuildManager()
Method Detail

cancelAllBuilds

public void cancelAllBuilds(@NotNull
                            java.lang.String planKey,
                            boolean abandonResult)
                     throws java.lang.InterruptedException
Description copied from interface: StopBuildManager
Will stop all builds running for plan identified by planKey

Specified by:
cancelAllBuilds in interface StopBuildManager
Throws:
java.lang.InterruptedException

cancelAllBuilds

public void cancelAllBuilds(@NotNull
                            PlanKey planKey,
                            boolean abandonResult)
Description copied from interface: StopBuildManager
Will stop all builds running for plan identified by PlanKey

Specified by:
cancelAllBuilds in interface StopBuildManager

cancelBuild

public void cancelBuild(@NotNull
                        java.lang.String planResultKey,
                        boolean abandonResult)
                 throws java.lang.InterruptedException
Description copied from interface: StopBuildManager
Cancel a running build optionally abandoning the result

Specified by:
cancelBuild in interface StopBuildManager
Throws:
java.lang.InterruptedException

cancelBuild

public void cancelBuild(@NotNull
                        PlanResultKey planResultKey,
                        boolean abandonResult)
Description copied from interface: StopBuildManager
Cancel a running build optionally abandoning the result

Specified by:
cancelBuild in interface StopBuildManager

stopAgentNicely

public void stopAgentNicely(@NotNull
                            BuildAgent buildAgent)
Description copied from interface: StopBuildManager
Will tell an agent to stop after it's finished the current build

Specified by:
stopAgentNicely in interface StopBuildManager

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

setBuildQueueManager

public void setBuildQueueManager(BuildQueueManager buildQueueManager)

setAgentCommandSender

public void setAgentCommandSender(AgentCommandSender agentCommandSender)

setEventManager

public void setEventManager(com.atlassian.event.EventManager eventManager)

setPlanManager

public void setPlanManager(PlanManager planManager)

setPlanExecutionManager

public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)

setScheduler

public void setScheduler(org.quartz.Scheduler scheduler)


Copyright © 2010 Atlassian. All Rights Reserved.