|
Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler 11g Release 1 (11.1.1.9) E57090-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.as.scheduler.Diagnosis
public class Diagnosis
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.
Nested Class Summary | |
---|---|
static class |
Diagnosis.AsyncExecutionType Enum of job types. |
protected static class |
Diagnosis.DiagnosisField Diagnosis field. |
static class |
Diagnosis.DiagnosticCode Enum of diagnostic codes. |
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(javax.management.openmbean.CompositeData 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. |
java.util.List<java.lang.String> |
getDiagnosisMessages(java.util.Locale locale, java.util.TimeZone timeZone) Gets a list of localized message string this diagnosis. |
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. |
ProcessPhase |
getProcessPhase() Gets the ProcessPhase for the request. |
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. |
java.lang.String |
getSqlDbJobName() Gets the name of backend SQL job for an ESS SQL request. |
java.lang.String |
getSqlDbJobStatus() Gets the status of the backend SQL job for an ESS SQL 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. |
boolean |
hasManualAsyncComplete() Indicates if manual asynchronous completion was initiated for the request. |
boolean |
hasManualRecoverRequest() Indicates if manual recovery was initiated for the request. |
protected void |
setField(Diagnosis.DiagnosisField field, java.lang.Object value) Sets all the optional information in the Diagnosis. |
javax.management.openmbean.CompositeData |
toCompositeData(javax.management.openmbean.CompositeType ct) Convert an instance of this model specific type to a CompositeData. |
static javax.management.openmbean.CompositeType |
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 |
Constructor Detail |
---|
protected Diagnosis(long requestId, State state)
protected Diagnosis(long requestId, State state, Diagnosis.DiagnosticCode diagnosticCode)
Method Detail |
---|
public long getRequestId()
public State getState()
public ProcessPhase getProcessPhase()
public Diagnosis.DiagnosticCode getDiagnosticCode()
public java.util.Calendar getScheduledTime()
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
public java.lang.String getRequestedProcessor()
Requested processor will be available for the following DiagnosticCodes
public java.lang.String getApplication()
Application will be available for the following DiagnosticCodes
public java.lang.String getProcessGroup()
Process group will be available for the following DiagnosticCodes
public java.lang.String getIsolationGroup()
Isolation group will be available for the following DiagnosticCodes
public MetadataObjectId getWorkAssignment()
TERMINAL
, this is the work assignment that processed the last phase of the request.
The work assignment will be available for the following DiagnosticCodes
public MetadataObjectId getWorkshift()
TERMINAL
, this is the workshift under which the last phase of the request was processed.
The workshift will be available for the following DiagnosticCodes
public long getParentRequestId()
The parent request id will be available for the following DiagnosticCodes
public long getBlockingRequestId()
The blocking request id will be available for the following DiagnosticCodes
public long getSubRequestId()
The subrequest id will be available for the following DiagnosticCodes
public Diagnosis.AsyncExecutionType getAsyncExecType()
The async execution type will be available for the following DiagnosticCodes
UNKNOWN
public int getAsyncLimit()
The async limit will be available for the following DiagnosticCodes
AsyncThrottle.UNSPECIFIED
for a request that is not throttled.public boolean hasDisabledUpdateEvents()
This flag will be available for an async Java request in RUNNING
state.
true
if the request has disabled update events.public boolean hasContentImportError()
This flag will be available for any request that has run.
true
if the request had a file import failure; false
if no import failure or unable to update request for an import failure.public java.lang.String getSqlDbJobStatus()
For an Oracle Scheduler job, this represents an untranslated value obtained directly from an Oracle Scheduler view.
public java.lang.String getSqlDbJobName()
For an Oracle Scheduler job, this represents the quoted, fully qualified "owner"."job_name"
of the SQL job.
public boolean hasManualRecoverRequest()
true
if manual recovery was initiated; false
if notpublic boolean hasManualAsyncComplete()
true
if manual asynchronous completion was initiated; false
if notpublic java.util.List<java.lang.String> getDiagnosisMessages(java.util.Locale locale, java.util.TimeZone timeZone)
locale
- locale to use; uses default if null
timeZone
- time zone to use for formatting dates; uses default if null
.public java.lang.String toString(java.util.Locale locale, java.util.TimeZone timeZone)
locale
- locale to use; uses default if null
timeZone
- time zone to use for formatting dates; uses default if null
.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toMinimalString()
protected void setField(Diagnosis.DiagnosisField field, java.lang.Object value)
public static javax.management.openmbean.CompositeType toCompositeType()
public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
ct
- This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.public static Diagnosis from(javax.management.openmbean.CompositeData cd) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler 11g Release 1 (11.1.1.9) E57090-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |