Package com.thingworx.system
Enum Class ContextType
- All Implemented Interfaces:
Serializable
,Comparable<ContextType>
,Constable
ContextType for adjusting behavior based on server context and operation requirements
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if this is a patch create operation or not.boolean
Determine if this is a patch delete operation or not.boolean
Determine if this is a patch operation or not.boolean
Determine if this is a patch update operation or not.boolean
Determine if this is a secondary or patch operation.boolean
Determine if this is a secondary shutdown contextboolean
Determine if this is a secondary startup contextstatic ContextType
Returns the enum constant of this class with the specified name.static ContextType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PATCH_CREATE
-
PATCH_DELETE
-
STARTUP
-
SHUTDOWN
-
NONE
-
PATCH_UPDATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isSecondaryOperation
Determine if this is a secondary or patch operation.- Returns:
- true if given change type is secondary or patch operation.
-
isPatchOperation
Determine if this is a patch operation or not.- Returns:
- true if given change type is model sync patch operation.
-
isSecondaryStartup
Determine if this is a secondary startup context- Returns:
- true if this is not the first server starting up.
-
isSecondaryShutdown
Determine if this is a secondary shutdown context- Returns:
- true if this is not the last server shutting down.
-
isPatchCreateOperation
Determine if this is a patch create operation or not.- Returns:
- true if this is model sync patch create operation.
-
isPatchDeleteOperation
Determine if this is a patch delete operation or not.- Returns:
- true if this is model sync patch delete operation.
-
isPatchUpdateOperation
Determine if this is a patch update operation or not.- Returns:
- true if this is model sync patch update operation.
-