com.atlassian.bamboo.trigger.dependency
Class AfterSuccessfulDeploymentTriggerActivator

java.lang.Object
  extended by com.atlassian.bamboo.trigger.dependency.AfterSuccessfulDeploymentTriggerActivator
All Implemented Interfaces:
TriggerActivator

public class AfterSuccessfulDeploymentTriggerActivator
extends Object
implements TriggerActivator


Constructor Summary
AfterSuccessfulDeploymentTriggerActivator()
           
 
Method Summary
 void activate(Triggerable triggerable, TriggerDefinition triggerDefinition)
          This method should activate any services or threads that are required for this trigger to function.
 void deactivate(Triggerable triggerable, TriggerDefinition triggerDefinition)
          This method should deactivate any services or threads related to this trigger This method is called: - when triggered object is removed - when trigger is removed - before update of triggered object's configuration - when trigger plugin module is disabled
 void initAndActivate(Triggerable triggerable, TriggerDefinition triggerDefinition, Date lastShutdownTime)
          This method is called on Bamboo server startup and when trigger plugin is enabled.
 void setEnvironmentDependencyService(EnvironmentDependencyService environmentDependencyService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AfterSuccessfulDeploymentTriggerActivator

public AfterSuccessfulDeploymentTriggerActivator()
Method Detail

initAndActivate

public void initAndActivate(@NotNull
                            Triggerable triggerable,
                            @NotNull
                            TriggerDefinition triggerDefinition,
                            @Nullable
                            Date lastShutdownTime)
Description copied from interface: TriggerActivator
This method is called on Bamboo server startup and when trigger plugin is enabled. It should activate any services or threads that are required for this trigger to function. In most cases it should be the same as TriggerActivator.activate(Triggerable, TriggerDefinition)

Specified by:
initAndActivate in interface TriggerActivator
Parameters:
triggerable - object to be triggered
triggerDefinition - how trigger is configured
lastShutdownTime - last recorded shutdown time or null if no record of server having been shut down is available

activate

public void activate(@NotNull
                     Triggerable triggerable,
                     @NotNull
                     TriggerDefinition triggerDefinition)
Description copied from interface: TriggerActivator
This method should activate any services or threads that are required for this trigger to function. This method is called: - after trigger creation - after trigger update - after update of triggered object's configuration

Specified by:
activate in interface TriggerActivator
Parameters:
triggerable - object to be triggered
triggerDefinition - how trigger is configured

deactivate

public void deactivate(@NotNull
                       Triggerable triggerable,
                       @NotNull
                       TriggerDefinition triggerDefinition)
Description copied from interface: TriggerActivator
This method should deactivate any services or threads related to this trigger This method is called: - when triggered object is removed - when trigger is removed - before update of triggered object's configuration - when trigger plugin module is disabled

Specified by:
deactivate in interface TriggerActivator
Parameters:
triggerable - object not to be triggered
triggerDefinition - how trigger is configured

setEnvironmentDependencyService

public void setEnvironmentDependencyService(EnvironmentDependencyService environmentDependencyService)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.