Enum AzureOperation.Type
- java.lang.Object
-
- java.lang.Enum<AzureOperation.Type>
-
- com.microsoft.azure.toolkit.lib.common.operation.AzureOperation.Type
-
- All Implemented Interfaces:
Serializable,Comparable<AzureOperation.Type>
- Enclosing class:
- AzureOperation
public static enum AzureOperation.Type extends Enum<AzureOperation.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIONuser triggered action, achieved by leveraging services and tasks e.g.DEFAULTREQUESTa special type of taskSERVICEusually achieves certain biz goal(so it's biz related), similar to spring @Service, shared by actions and services e.g.TASKfiner granularity, shared by services and actions, lies at the same layer as spring @Repository e.g.
-
Constructor Summary
Constructors Modifier Constructor Description privateType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AzureOperation.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static AzureOperation.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final AzureOperation.Type DEFAULT
-
ACTION
public static final AzureOperation.Type ACTION
user triggered action, achieved by leveraging services and tasks e.g. run configuration, download file
-
SERVICE
public static final AzureOperation.Type SERVICE
usually achieves certain biz goal(so it's biz related), similar to spring @Service, shared by actions and services e.g. start a webapp(specified by id), update setting of deployment slot.
-
TASK
public static final AzureOperation.Type TASK
finer granularity, shared by services and actions, lies at the same layer as spring @Repository e.g. single io request, single db access, convert POJO to VO, ...
-
REQUEST
public static final AzureOperation.Type REQUEST
a special type of task
-
-
Method Detail
-
values
public static AzureOperation.Type[] 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 (AzureOperation.Type c : AzureOperation.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AzureOperation.Type 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
-
-