com.atlassian.bamboo.v2.trigger
Class ChangeDetectionListenerAction

java.lang.Object
  extended by com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction
All Implemented Interfaces:
BuildDetectionAction, ConditionalBuildDetectionAction, TriggerConditionsAwareBuildDetectionAction

public class ChangeDetectionListenerAction
extends java.lang.Object
implements TriggerConditionsAwareBuildDetectionAction, ConditionalBuildDetectionAction


Constructor Summary
ChangeDetectionListenerAction(PlanKey planKey, java.util.Set<java.lang.Long> triggeringRepositories, java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration)
           
ChangeDetectionListenerAction(PlanKey planKey, java.util.Set<java.lang.Long> triggeringRepositories, java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration, boolean logIfNoChanges)
           
 
Method Summary
 BuildDetectionResult createBuildContext()
          Actual creation of a BuildContext.
 java.util.Map<java.lang.String,java.lang.String> getTriggerConditionsConfiguration()
           
 void setBuildContextBuilderFactory(BuildContextBuilderFactory buildContextBuilderFactory)
           
 void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
           
 void setBuildNumberGeneratorService(BuildNumberGeneratorService buildNumberGeneratorService)
           
 void setChangeDetectionManager(ChangeDetectionManager changeDetectionManager)
           
 void setDependencyBlockingManager(DependencyBlockingManager dependencyBlockingManager)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
           
 void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)
           
 void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
           
 void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
           
 void setTriggerManager(TriggerManager triggerManager)
           
 com.atlassian.fugue.Pair<java.lang.Boolean,ErrorCollection> testIfBuildShouldStart()
          Method that should test if chain should be started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeDetectionListenerAction

public ChangeDetectionListenerAction(@NotNull
                                     PlanKey planKey,
                                     @NotNull
                                     java.util.Set<java.lang.Long> triggeringRepositories,
                                     @NotNull
                                     java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration)

ChangeDetectionListenerAction

public ChangeDetectionListenerAction(PlanKey planKey,
                                     @NotNull
                                     java.util.Set<java.lang.Long> triggeringRepositories,
                                     @NotNull
                                     java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration,
                                     boolean logIfNoChanges)
Method Detail

testIfBuildShouldStart

public com.atlassian.fugue.Pair<java.lang.Boolean,ErrorCollection> testIfBuildShouldStart()
Description copied from interface: ConditionalBuildDetectionAction
Method that should test if chain should be started. It's OK for this method to take some time. Example implementation is VCS change detection. The method should not produce BuildContext (even though BuildDetectionResult has such field) but it should perform all time consuming data gathering required to do so in subsequent call to ConditionalBuildDetectionAction.createBuildContext()

Specified by:
testIfBuildShouldStart in interface ConditionalBuildDetectionAction

createBuildContext

public BuildDetectionResult createBuildContext()
Description copied from interface: ConditionalBuildDetectionAction
Actual creation of a BuildContext. Should be as fast as possible. If previous call to ConditionalBuildDetectionAction.testIfBuildShouldStart() decided that the build should start, this method is expected to produce BuildDetectionResult containing valid BuildContext

Specified by:
createBuildContext in interface ConditionalBuildDetectionAction

getTriggerConditionsConfiguration

public java.util.Map<java.lang.String,java.lang.String> getTriggerConditionsConfiguration()
Specified by:
getTriggerConditionsConfiguration in interface TriggerConditionsAwareBuildDetectionAction

setTriggerManager

public void setTriggerManager(TriggerManager triggerManager)

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)

setChangeDetectionManager

public void setChangeDetectionManager(ChangeDetectionManager changeDetectionManager)

setDependencyBlockingManager

public void setDependencyBlockingManager(DependencyBlockingManager dependencyBlockingManager)

setBuildLoggerManager

public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)

setTextProvider

public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)

setBuildNumberGeneratorService

public void setBuildNumberGeneratorService(BuildNumberGeneratorService buildNumberGeneratorService)

setPlanVcsRevisionHistoryService

public void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)

setImmutablePlanCacheService

public void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)

setEventPublisher

public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)

setBuildContextBuilderFactory

public void setBuildContextBuilderFactory(BuildContextBuilderFactory buildContextBuilderFactory)


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