Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (
Class Diagnosis

  extended by

All Implemented Interfaces:

public class Diagnosis
extends java.lang.Object

Request diagnosis. A diagnosis provides information about the request including its state and an optional diagnostic code that provides additional information about why the request is in that state.

See Also:
Serialized Form

Nested Class Summary
static class Diagnosis.AsyncExecutionType
          Enum of job types.
static class Diagnosis.DiagnosticCode
          Enum of diagnostic codes.


Field Summary
protected  java.lang.String m_application
protected  Diagnosis.AsyncExecutionType m_asyncExecType
protected  int m_asyncLimit
protected  long m_blockingRequestId
protected  boolean m_hasContentImportError
protected  boolean m_hasDisabledUpdateEvents
protected  java.lang.String m_isolationGroup
protected  long m_parentRequestId
protected  java.lang.String m_processGroup
protected  java.lang.String m_requestedProcessor
protected  java.util.Calendar m_scheduledTime
protected  long m_subRequestId
protected  MetadataObjectId m_workAssignment
protected  MetadataObjectId m_workshift


Constructor Summary
protected Diagnosis(long requestId, State state)
          Constructs a new request diagnosis with minimal information.
protected Diagnosis(long requestId, State state, Diagnosis.DiagnosticCode diagnosticCode)
          Constructs a new request diagnosis.


Method Summary
static Diagnosis from( cd)
          Create an instance of the model specific class out of an associated CompositeData instance
 java.lang.String getApplication()
          Gets the application.
 Diagnosis.AsyncExecutionType getAsyncExecType()
          Gets the async execution type of this request.
 int getAsyncLimit()
          Gets the async limit that caused this request to be throttled.
 long getBlockingRequestId()
          Gets the request id of a request that is blocking this request.
 Diagnosis.DiagnosticCode getDiagnosticCode()
          Gets the disgnostic code for the request.
 java.lang.String getIsolationGroup()
          Gets the isolation group.
 long getParentRequestId()
          Gets the parent request id of the request.
 java.lang.String getProcessGroup()
          Gets the process group.
 java.lang.String getRequestedProcessor()
          Gets the requested processor.
 long getRequestId()
          Gets the request identifier associated with this diagnosis.
 java.util.Calendar getScheduledTime()
          Gets the scheduled time of the request.
 State getState()
          Gets the state for the request.
 long getSubRequestId()
          Gets the request id of a non-terminal subrequest of this request.
 MetadataObjectId getWorkAssignment()
          Gets the metadata id of a work assignment that could process the request.
 MetadataObjectId getWorkshift()
          Gets the metadata id of a workshift for the diagnosis.
 boolean hasContentImportError()
          Indicates if there was a failure to import log or output files to the request content store.
 boolean hasDisabledUpdateEvents()
          Indicates if the running request has disabled update events.
protected  void setExtras(java.util.Calendar scheduledTime, java.lang.String requestedProcessor, java.lang.String isolationGroup, java.lang.String processGroup, java.lang.String application, MetadataObjectId workAssignment, MetadataObjectId workshift, long parentRequestId, long blockingRequestId, long subRequestId, Diagnosis.AsyncExecutionType asyncExecType, int asyncLimit, boolean hasDisabledUpdateEvents, boolean hasContentImportError)
          Sets all the optional information in the Diagnosis.
protected  void setScheduledTime(java.util.Calendar scheduledTime)
          Sets the scheduled time for a request in WAIT state. toCompositeData( ct)
          Convert an instance of this model specific type to a CompositeData.
static toCompositeType()
          Returns the CompositeType that describes this model specific class.
 java.lang.String toMinimalString()
 java.lang.String toString()
 java.lang.String toString(java.util.Locale locale, java.util.TimeZone timeZone)
          Support EM's need to acquire a localized message String for the Diagnosis.


Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait


Field Detail


protected java.util.Calendar m_scheduledTime


protected java.lang.String m_requestedProcessor


protected java.lang.String m_processGroup


protected java.lang.String m_isolationGroup


protected java.lang.String m_application


protected MetadataObjectId m_workAssignment


protected MetadataObjectId m_workshift


protected long m_parentRequestId


protected long m_blockingRequestId


protected long m_subRequestId


protected Diagnosis.AsyncExecutionType m_asyncExecType


protected int m_asyncLimit


protected boolean m_hasDisabledUpdateEvents


protected boolean m_hasContentImportError

Constructor Detail


protected Diagnosis(long requestId,
                    State state)
Constructs a new request diagnosis with minimal information.


protected Diagnosis(long requestId,
                    State state,
                    Diagnosis.DiagnosticCode diagnosticCode)
Constructs a new request diagnosis.

Method Detail


public long getRequestId()
Gets the request identifier associated with this diagnosis.
request identifier


public State getState()
Gets the state for the request.
request state


public Diagnosis.DiagnosticCode getDiagnosticCode()
Gets the disgnostic code for the request.
diagnostic code


public java.util.Calendar getScheduledTime()
Gets the scheduled time of the request. For DiagnosticCode of RETRY_DELAY, it is the time the request will be retried. For FUTURE_START, it is the normal scheduled time of the request. For PREPROCESS_DELAY and POSTPROCESS_DELAY, it is the time the delay ends.

The scheduled time will be available for the following DiagnosticCodes