Package com.atlassian.bamboo.beehive
Enum ServiceWideExclusiveLock
- java.lang.Object
-
- java.lang.Enum<ServiceWideExclusiveLock>
-
- com.atlassian.bamboo.beehive.ServiceWideExclusiveLock
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceWideExclusiveLock>
public enum ServiceWideExclusiveLock extends Enum<ServiceWideExclusiveLock>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APP_UPGRADE
BOOTSTRAP_UPGRADE
SCHEMA_UPGRADE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static ServiceWideExclusiveLock
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceWideExclusiveLock[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static <T extends Throwable>
voidwithExclusiveClusterLock(@NotNull ServiceWideExclusiveLock lock, @NotNull com.atlassian.beehive.ClusterLockService clusterLockService, BambooRunnables.Throwing<T> runnable)
-
-
-
Enum Constant Detail
-
BOOTSTRAP_UPGRADE
public static final ServiceWideExclusiveLock BOOTSTRAP_UPGRADE
-
SCHEMA_UPGRADE
public static final ServiceWideExclusiveLock SCHEMA_UPGRADE
-
APP_UPGRADE
public static final ServiceWideExclusiveLock APP_UPGRADE
-
-
Method Detail
-
values
public static ServiceWideExclusiveLock[] 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 (ServiceWideExclusiveLock c : ServiceWideExclusiveLock.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceWideExclusiveLock valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
withExclusiveClusterLock
public static <T extends Throwable> void withExclusiveClusterLock(@NotNull @NotNull ServiceWideExclusiveLock lock, @NotNull @NotNull com.atlassian.beehive.ClusterLockService clusterLockService, @NotNull BambooRunnables.Throwing<T> runnable) throws T extends Throwable
- Throws:
T extends Throwable
-
-