public final class RequestType extends Enum
The request type is established when a request is first created and does not change, except for an unvalidated request where the request type is set to the appropriate type once validation is done. An unvalidated request has PENDING_VALIDATION
state until it is validated. If validation fails, the request state is set to VALIDATION_FAILED
and the request type is not changed.
Some requests serve as both an absolute parent and instance parent; for example, SINGLETON
, JOBSET_SINGLETON
. Some requests serve as an absolute parent but not an instance parent; for example, RECUR_PARENT
, JOBSET_RECUR_PARENT
. Some requests serve as an instance parent but not an absolute parent; for example, RECUR_CHILD
, JOBSET_RECUR_CHILD
. Other requests are neither an absolute nor an instance parent; for example, SUBREQUEST
, JOBSET_STEP
. An UNVALIDATED_REQUEST
request will always be an absolute parent once it is validated, and may (or may not) also be an instance parent once successfully validated.
State
, Serialized FormModifier and Type | Field and Description |
---|---|
static RequestType |
JOBSET_RECUR_CHILD
Child request generated from a Schedule associated with a submitted JobSet request.
|
static RequestType |
JOBSET_RECUR_PARENT
JobSet recurring parent request.
|
static RequestType |
JOBSET_SINGLETON
JobSet singleton request.
|
static RequestType |
JOBSET_STEP
JobSet step request.
|
static RequestType |
RECUR_CHILD
Child request generated from a Schedule associated with a submitted regular (non-JobSet) request.
|
static RequestType |
RECUR_PARENT
Regular (non-JobSet) recurring parent request.
|
static RequestType |
SINGLETON
Regular (non-JobSet) singleton request.
|
static RequestType |
SUB_REQUEST
Sub-request.
|
static RequestType |
UNKNOWN
Unknown or invalid request type
|
static RequestType |
UNVALIDATED_REQUEST
Unvalidated request.
|
static RequestType |
UNVALIDATED_SUB_REQUEST
Unvalidated sub-request.
|
Modifier and Type | Method and Description |
---|---|
static RequestType |
fromString(String requestTypeStr)
Converts a stringified request type into a RequestType object.
|
static RequestType |
getType(int value)
The RequestType associated with the given value.
|
boolean |
isAbsoluteParent()
Indicates if this request type represents an absolute parent request.
|
boolean |
isInstanceParent()
Indicates if this request type represents an instance parent request.
|
String |
toString(Locale locale)
Enterprise Manager support to acquire a localized string value.
|
int |
value()
The numeric value associated with this RequestType.
|
static RequestType |
valueOf(String name) |
static RequestType[] |
values() |
public static final RequestType UNKNOWN
public static final RequestType SINGLETON
public static final RequestType RECUR_PARENT
The generated child request type will be one of: RECUR_CHILD
public static final RequestType RECUR_CHILD
The parent request type will be RECUR_PARENT
.
public static final RequestType JOBSET_SINGLETON
public static final RequestType JOBSET_STEP
The parent request type will be one of: JOBSET_SINGLETON
, JOBSET_RECUR_CHILD
, JOBSET_STEP
public static final RequestType JOBSET_RECUR_PARENT
The generated child request type will be one of: JOBSET_RECUR_CHILD
public static final RequestType JOBSET_RECUR_CHILD
The parent request type will be JOBSET_RECUR_PARENT
.
public static final RequestType SUB_REQUEST
The parent request type will be one of: SINGLETON
, RECUR_CHILD
, JOBSET_STEP
, SUB_REQUEST
public static final RequestType UNVALIDATED_REQUEST
A request of this type will have PENDING_VALIDATION
State
until it has been validated. Once validated the request type is set to the appropriate type. If validation fails, the request state is set to VALIDATION_FAILED
and the request type is not changed.
public static final RequestType UNVALIDATED_SUB_REQUEST
A request of this type will have PENDING_VALIDATION
State
until it has been validated. Once validated the request type is set to SUB_REQUEST
. If validation fails, the request state is set to VALIDATION_FAILED
and the request type is not changed.
public static RequestType[] values()
public static RequestType valueOf(String name)
public boolean isAbsoluteParent()
This returns true
for an UNVALIDATED_REQUEST
type since the validated request would always be an absolute parent of some sort.
true
if it represents an absolute parent, or false
otherwise.public boolean isInstanceParent()
This returns false
for an UNVALIDATED_REQUEST
type since that cannot be determined until the request is validated.
true
if it represents an instance parent, or false
otherwise.public int value()
public static RequestType getType(int value)
value
- the numeric valueIllegalArgumentException
- if unsupported value.public static RequestType fromString(String requestTypeStr)
requestTypeStr
- the string to convertrequestTypeStr
, or RequestType.Unknown
if the conversion could not be made.