com.atlassian.bamboo.v2.build.trigger
Enum DependencyBlockingStrategy

java.lang.Object
  extended by java.lang.Enum<DependencyBlockingStrategy>
      extended by com.atlassian.bamboo.v2.build.trigger.DependencyBlockingStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DependencyBlockingStrategy>

public enum DependencyBlockingStrategy
extends java.lang.Enum<DependencyBlockingStrategy>

Strategy for the DependencyBlockingManager


Enum Constant Summary
BuildParentIfChangesDetected
           
DontBuildIfParentInQueue
           
None
           
 
Field Summary
static java.lang.String DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
           
 
Method Summary
static DependencyBlockingStrategy getByValue(java.lang.String value)
          Get the strategy by value (essentially a key lookup for type of Strategy)
 java.lang.String getDescriptionI18nKey()
           
 java.lang.String getI18nKey()
           
static DependencyBlockingStrategy getStrategy(Plan plan)
          Get strategy for build
 java.lang.String getValue()
          Get storage value
static void setStrategy(DependencyBlockingStrategy strategy, Plan plan)
          Set strategy for build
static DependencyBlockingStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DependencyBlockingStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final DependencyBlockingStrategy None

DontBuildIfParentInQueue

public static final DependencyBlockingStrategy DontBuildIfParentInQueue

BuildParentIfChangesDetected

public static final DependencyBlockingStrategy BuildParentIfChangesDetected
Field Detail

DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY

public static final java.lang.String DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
See Also:
Constant Field Values
Method Detail

values

public static DependencyBlockingStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DependencyBlockingStrategy c : DependencyBlockingStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DependencyBlockingStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getStrategy

@NotNull
public static DependencyBlockingStrategy getStrategy(@NotNull
                                                             Plan plan)
Get strategy for build

Parameters:
plan - to get the strategy for
Returns:
strategy

setStrategy

public static void setStrategy(DependencyBlockingStrategy strategy,
                               @NotNull
                               Plan plan)
Set strategy for build

Parameters:
strategy - new strategy for build
plan - to set strategy for

getByValue

public static DependencyBlockingStrategy getByValue(java.lang.String value)
Get the strategy by value (essentially a key lookup for type of Strategy)

Parameters:
value - to look up
Returns:
strategy

getI18nKey

public java.lang.String getI18nKey()
Returns:
the I18n key

getDescriptionI18nKey

public java.lang.String getDescriptionI18nKey()
Returns:
the description I18n key

getValue

public java.lang.String getValue()
Get storage value

Returns:
value


Copyright © 2010 Atlassian. All Rights Reserved.