Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


oracle.as.scheduler
Enum RequestType

java.lang.Object
  extended by java.lang.Enum<RequestType>
      extended by oracle.as.scheduler.RequestType

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RequestType>

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

Enum of request types.

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. Some requests serve as an absolute parent but not an instance parent; for example, RECUR_PARENT. Some requests serve as an instance parent but not an absolute parent; for example, RECUR_CHILD. Other requests are neither an absolute nor an instance parent; for example, SUBREQUEST. An UNVALIDATED_REQUEST request would always be an absolute parent once it is validated, but cannot determine if it might also be an instance parent until it is successfully validatedd.

See Also:
State

Enum Constant Summary
JOBSET_RECUR_CHILD
          Child request generated from a Schedule associated with a submitted JobSet request.
JOBSET_RECUR_PARENT
          JobSet recurring parent request.
JOBSET_SINGLETON
          JobSet singleton request.
JOBSET_STEP
          JobSet step request.
JOBSET_TRIGGER_CHILD
          Child request generated from a Trigger associated with a submitted JobSet request.
RECUR_CHILD
          Child request generated from a Schedule associated with a submitted regular (non-JobSet) request.
RECUR_PARENT
          Regular (non-JobSet) recurring parent request.
SINGLETON
          Regular (non-JobSet) singleton request.
SUB_REQUEST
          Sub-request.
TRIGGER_CHILD
          Child request generated from a Trigger associated with a submitted regular (non-JobSet) request.
UNKNOWN
          Unknown or invalid request type
UNVALIDATED_REQUEST
          Unvalidated request.
UNVALIDATED_SUB_REQUEST
          Unvalidated sub-request.

 

Method Summary
static RequestType from(javax.management.openmbean.CompositeData cd)
           
static RequestType fromString(java.lang.String requestTypeStr)
          Converts a stringified request type into a RequestType object.
static RequestType getType(int value)
          Returns the RequestType associated with a numeric 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.
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
           
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class
 java.lang.String toString(java.util.Locale locale)
           
 int value()
          Returns the numeric type associated with this RequestType.
static RequestType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RequestType[] 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

UNKNOWN

public static final RequestType UNKNOWN
Unknown or invalid request type

SINGLETON

public static final RequestType SINGLETON
Regular (non-JobSet) singleton request. Neither a Schedule nor a Trigger was specified at request submission.

RECUR_PARENT

public static final RequestType RECUR_PARENT
Regular (non-JobSet) recurring parent request. A Schedule and/or Trigger was specified at request submission.

The generated child request type will be one of: RECUR_CHILD, TRIGGER_CHILD


RECUR_CHILD

public static final RequestType RECUR_CHILD
Child request generated from a Schedule associated with a submitted regular (non-JobSet) request.

The parent request type will be RECUR_PARENT.


JOBSET_SINGLETON

public static final RequestType JOBSET_SINGLETON
JobSet singleton request. Neither a Schedule nor a Trigger was specified at request submission.

JOBSET_STEP

public static final RequestType JOBSET_STEP
JobSet step request.

The parent request type will be one of: JOBSET_SINGLETON, JOBSET_RECUR_CHILD, JOBSET_TRIGGER_CHILD, JOBSET_STEP


JOBSET_RECUR_PARENT

public static final RequestType JOBSET_RECUR_PARENT
JobSet recurring parent request. A Schedule and/or Trigger was specified at request submission.

The generated child request type will be one of: JOBSET_RECUR_CHILD, JOBSET_TRIGGER_CHILD


JOBSET_RECUR_CHILD

public static final RequestType JOBSET_RECUR_CHILD
Child request generated from a Schedule associated with a submitted JobSet request.

The parent request type will be JOBSET_RECUR_PARENT.


SUB_REQUEST

public static final RequestType SUB_REQUEST
Sub-request.

The parent request type will be one of: SINGLETON, RECUR_CHILD, TRIGGER_CHILD, JOBSET_STEP, SUB_REQUEST


UNVALIDATED_REQUEST

public static final RequestType UNVALIDATED_REQUEST
Unvalidated request. Limited operations are supported for an 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.


UNVALIDATED_SUB_REQUEST

public static final RequestType UNVALIDATED_SUB_REQUEST
Unvalidated sub-request. Limited operations are supported for an 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.


TRIGGER_CHILD

public static final RequestType TRIGGER_CHILD
Child request generated from a Trigger associated with a submitted regular (non-JobSet) request.

The parent request type will be RECUR_PARENT.


JOBSET_TRIGGER_CHILD

public static final RequestType JOBSET_TRIGGER_CHILD
Child request generated from a Trigger associated with a submitted JobSet request.

The parent request type will be JOBSET_RECUR_PARENT.

Method Detail

values

public static RequestType[] 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 (RequestType c : RequestType.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RequestType 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:
IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isAbsoluteParent

public boolean isAbsoluteParent()
Indicates if this request type represents an absolute parent request.

This returns true for an UNVALIDATED_REQUEST type since the validated request would always be an absolute parent of some sort.

Returns:
true if it represents an absolute parent, or false otherwise.

isInstanceParent

public boolean isInstanceParent()
Indicates if this request type represents an instance parent request.

This returns false for an UNVALIDATED_REQUEST type since that cannot be determined until the request is validated.

Returns:
true if it represents an instance parent, or false otherwise.

value

public int value()
Returns the numeric type associated with this RequestType.
Returns:
the associated numeric value

getType

public static RequestType getType(int value)
Returns the RequestType associated with a numeric value.
Parameters:
value - the numeric value
Returns:
the RequestType associated with the value
Throws:
java.lang.IllegalArgumentException - if unsupported value.

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)

from

public static RequestType from(javax.management.openmbean.CompositeData cd)
                        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

fromString

public static RequestType fromString(java.lang.String requestTypeStr)
Converts a stringified request type into a RequestType object.
Parameters:
requestTypeStr -
Returns:
the request type derived from requestTypeStr or RequestType.Unknown if the conversion could not be made.

toString

public java.lang.String toString(java.util.Locale locale)

Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.