Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.5)
E20742-01


oracle.as.scheduler
Class FailedExecutionResult

java.lang.Object
  extended by oracle.as.scheduler.FailedExecutionResult
All Implemented Interfaces:
java.io.Serializable

public class FailedExecutionResult
extends java.lang.Object
implements java.io.Serializable

Encapsulates the result of a failed execution attempt for a request.

See Also:
Serialized Form

Constructor Summary
protected FailedExecutionResult(long requestId, int executionAttempt, State state, ErrorType errorType, Cause cause, java.lang.String errorWarningMessage, java.util.Calendar errorWarningTime)
          Constructs a new instance with minimal information from a failed execution attempt.
protected FailedExecutionResult(long requestId, int executionAttempt, State state, ErrorType errorType, Cause cause, java.lang.String errorWarningMessage, java.util.Calendar errorWarningTime, java.lang.String errorWarningDetail, java.util.Calendar scheduledTime, java.util.Calendar processStart, java.util.Calendar processEnd, java.lang.String dispatcher, java.lang.String processor, MetadataObjectId workAssignmentId, MetadataObjectId workshiftId, int pausedCount, int lastSubrequestSet, java.lang.String preprocessStatus, java.lang.String preprocessMessage, java.lang.String postprocessStatus, java.lang.String postprocessMessage, java.lang.String executableStatus)
          Constructs a new instance with complete information from a failed execution attempt.
 
Method Summary
static FailedExecutionResult from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance
 Cause getCause()
          Returns the cause for this failed execution attempt.
 java.lang.String getDispatcher()
          Returns the name of the server that dispatched this execution attempt.
 ErrorType getErrorType()
          Gets the error type for this failed execution attempt.
 java.lang.String getErrorWarningDetail()
          Returns the stack trace of the error/warning that happened during this execution attempt.
 java.lang.String getErrorWarningMessage()
          Returns the message associated with an error/warning that occurred during this execution attempt.
 java.util.Calendar getErrorWarningTime()
          Returns the time of error/warning occured during this execution attempt.
 java.lang.String getExecutableStatus()
          The status of the request when the executable stage completed.
 int getExecutionAttempt()
          Returns the current execution attempt for this request.
 int getLastSubrequestSet()
          The set number assigned to the last subrequest submitted by this request during this execution attempt.
 int getPausedCount()
          The number of times this request was paused during this execution attempt.
 java.lang.String getPostProcessMessage()
          The action message returned by the post-processor for this request.
 java.lang.String getPostProcessStatus()
          The status returned by the post-processor for this request.
 java.lang.String getPreProcessMessage()
          The action message returned by the pre-processor for this request.
 java.lang.String getPreProcessStatus()
          The status returned by the pre-processor for this request.
 java.util.Calendar getProcessEnd()
          Returns the time processing ended for this execution attempt.
 java.lang.String getProcessor()
          Returns the name of the server that processed this execution attempt.
 java.util.Calendar getProcessStart()
          Returns the time processing started for this execution attempt.
 long getRequestId()
          Gets the request identifier associated with this execution attempt.
 java.util.Calendar getScheduledTime()
          Returns the scheduled time of this execution attempt.
 State getState()
          Gets the state for this failed execution attempt.
 MetadataObjectId getWorkAssignmentId()
          Returns the id of the work assignment that handled this execution attempt.
 MetadataObjectId getWorkshiftId()
          Returns the id of the workshift that handled this execution attempt.
 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 toDebugString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FailedExecutionResult

protected FailedExecutionResult(long requestId,
                                int executionAttempt,
                                State state,
                                ErrorType errorType,
                                Cause cause,
                                java.lang.String errorWarningMessage,
                                java.util.Calendar errorWarningTime)
Constructs a new instance with minimal information from a failed execution attempt.


FailedExecutionResult

protected FailedExecutionResult(long requestId,
                                int executionAttempt,
                                State state,
                                ErrorType errorType,
                                Cause cause,
                                java.lang.String errorWarningMessage,
                                java.util.Calendar errorWarningTime,
                                java.lang.String errorWarningDetail,
                                java.util.Calendar scheduledTime,
                                java.util.Calendar processStart,
                                java.util.Calendar processEnd,
                                java.lang.String dispatcher,
                                java.lang.String processor,
                                MetadataObjectId workAssignmentId,
                                MetadataObjectId workshiftId,
                                int pausedCount,
                                int lastSubrequestSet,
                                java.lang.String preprocessStatus,
                                java.lang.String preprocessMessage,
                                java.lang.String postprocessStatus,
                                java.lang.String postprocessMessage,
                                java.lang.String executableStatus)
Constructs a new instance with complete information from a failed execution attempt.

Method Detail

getRequestId

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

Returns:
request identifier.

getExecutionAttempt

public int getExecutionAttempt()
Returns the current execution attempt for this request. Execution attempts are numbered starting at 1.

Returns:
number of this execution attempt

getState

public State getState()
Gets the state for this failed execution attempt.

Returns:
request state

getErrorType

public ErrorType getErrorType()
Gets the error type for this failed execution attempt. Note that the error type is only valid if the state is ERROR.

Returns:
error type

getCause

public Cause getCause()
Returns the cause for this failed execution attempt.

Returns:
the cause associated with the terminal state

getErrorWarningMessage

public java.lang.String getErrorWarningMessage()
Returns the message associated with an error/warning that occurred during this execution attempt.

Returns:
value of the error/warning message

getErrorWarningTime

public java.util.Calendar getErrorWarningTime()
Returns the time of error/warning occured during this execution attempt.

Returns:
time of occurrence of error/warning

getErrorWarningDetail

public java.lang.String getErrorWarningDetail()
Returns the stack trace of the error/warning that happened during this execution attempt.

Returns:
error/warning detail

getScheduledTime

public java.util.Calendar getScheduledTime()
Returns the scheduled time of this execution attempt.

Returns:
scheduled time

getProcessStart

public java.util.Calendar getProcessStart()
Returns the time processing started for this execution attempt.

Returns:
process start time

getProcessEnd

public java.util.Calendar getProcessEnd()
Returns the time processing ended for this execution attempt.

Returns:
process end time

getDispatcher

public java.lang.String getDispatcher()
Returns the name of the server that dispatched this execution attempt.

Returns:
dispatching server name

getProcessor

public java.lang.String getProcessor()
Returns the name of the server that processed this execution attempt.

Returns:
processing server name

getWorkAssignmentId

public MetadataObjectId getWorkAssignmentId()
Returns the id of the work assignment that handled this execution attempt.

Returns:
metadata id of processing work assignment

getWorkshiftId

public MetadataObjectId getWorkshiftId()
Returns the id of the workshift that handled this execution attempt.

Returns:
metadata id of processing workshift

getPausedCount

public int getPausedCount()
The number of times this request was paused during this execution attempt.

Returns:
the paused count for this request

getLastSubrequestSet

public int getLastSubrequestSet()
The set number assigned to the last subrequest submitted by this request during this execution attempt.

Returns:
the set number assigned to the last submitted subrequest

getPreProcessStatus

public java.lang.String getPreProcessStatus()
The status returned by the pre-processor for this request.

Returns:
the pre-processor status

getPreProcessMessage

public java.lang.String getPreProcessMessage()
The action message returned by the pre-processor for this request.

Returns:
the pre-processor action message

getPostProcessStatus

public java.lang.String getPostProcessStatus()
The status returned by the post-processor for this request.

Returns:
the post-processor status

getPostProcessMessage

public java.lang.String getPostProcessMessage()
The action message returned by the post-processor for this request.

Returns:
the post-processor action message

getExecutableStatus

public java.lang.String getExecutableStatus()
The status of the request when the executable stage completed.

Returns:
the executable stage state

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)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean. The MXBean framework can perform this conversion automatically. However MXBeans are part of JDK 6.0 and AS11g is required to support JDK 5.0

Parameters:
ct - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.

from

public static FailedExecutionResult from(javax.management.openmbean.CompositeData cd)
                                  throws java.lang.IllegalArgumentException
Create an instance of the model specific class out of an associated CompositeData instance

Throws:
java.lang.IllegalArgumentException

toDebugString

public java.lang.String toDebugString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service
11g Release 1 (11.1.1.5)
E20742-01


Copyright © 2008, 2011 Oracle. All rights reserved.