com.atlassian.bamboo.v2.build.queue
Class BuildQueueUpdateListener

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.queue.BuildQueueUpdateListener

public class BuildQueueUpdateListener
extends java.lang.Object

Queue reconstruction is expensive. This class delays queue reconstructions by a specified amount of time ($QUIET_TIME_MILLIS. Queue reconstructions requests happening during that "quiet" time period will extend the delay. All these requests will trigger only one queue reconstruction. Events affecting all agents and an event occurring when the agent is disabled trigger an immediate reconstruction (exception: a reconstruction is in progress). If a queue reconstruction event is received while a reconstruction is in progress, the new queue reconstruction won't happen until the quiet time passes (exception: immediate reconstruction), the timer starts counting when the current reconstruction is finished. after


Constructor Summary
BuildQueueUpdateListener()
           
 
Method Summary
 void onAgentAssignmentsUpdatedEvent(AgentAssignmentsUpdatedEvent event)
           
 void onAgentConfigurationUpdatedEvent(AgentConfigurationUpdatedEvent event)
           
 void onAllAgentsUpdatedEvent(AllAgentsUpdatedEvent event)
           
 void onBuildRequirementUpdatedEvent(BuildRequirementUpdatedEvent event)
           
 void onElasticConfigUpdatedEvent(ElasticConfigUpdatedEvent event)
           
 void setBuildQueueManager(BuildQueueManager buildQueueManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildQueueUpdateListener

public BuildQueueUpdateListener()
Method Detail

onAgentConfigurationUpdatedEvent

@EventListener
public void onAgentConfigurationUpdatedEvent(AgentConfigurationUpdatedEvent event)

onAgentAssignmentsUpdatedEvent

@EventListener
public void onAgentAssignmentsUpdatedEvent(AgentAssignmentsUpdatedEvent event)

onAllAgentsUpdatedEvent

@EventListener
public void onAllAgentsUpdatedEvent(AllAgentsUpdatedEvent event)

onBuildRequirementUpdatedEvent

@EventListener
public void onBuildRequirementUpdatedEvent(BuildRequirementUpdatedEvent event)

onElasticConfigUpdatedEvent

@EventListener
public void onElasticConfigUpdatedEvent(ElasticConfigUpdatedEvent event)

setBuildQueueManager

public void setBuildQueueManager(BuildQueueManager buildQueueManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.