public interface RequestExecutionContext extends Serializable
Executable
,
PreProcessHandler
,
PostProcessHandler
Modifier and Type | Method and Description |
---|---|
long |
getEnterpriseId()
Gets the enterprise ID of the request.
|
State |
getExecStageState()
Gets the state of the job execution.
|
String |
getPausedState()
Gets the paused state specified by the application when this
request was previously paused.
|
String |
getRequestHandle()
Gets the request handle associated with the executing request.
|
long |
getRequestId()
Gets the request identifier of the executing request.
|
boolean |
isResumed()
Indicates whether this request being resumed from a
PAUSED
state. |
String |
toIdString()
Gets a String representation of this object suitable for use
as a web service message ID.
|
String |
toString()
Gets a String representation of this object suitable for use
in a web service call such as
setAsyncRequestStatus . |
long getRequestId()
boolean isResumed()
PAUSED
state. This allows a request executable that submits sub-requests
to determine if the executable is being run the first time, or
it is being resumed after the sub-requests have completed.true
if the request is being resumed, or
false
of notString getPausedState()
ExecutionPausedException
used to pause a Java job parent request.
The value returned by this method is meaningful only for a
resumed request; that is, when (isResumed() = true
).
null
if no paused state was specified, or this context
does not represent a resumed request.String getRequestHandle()
The request handle is guaranteed to be non-null only when the target request executable is executing; that is, the Java procedure for Java jobs, the PLSQL stored procedure for SQL jobs, and the target executable for process jobs. The request handle may not be available at other times, for example, the pre-process and post-process callback handlers.
null
if one is not availableState getExecStageState()
UNKNOWN
if the
request executable has not yet been run.long getEnterpriseId()
String toString()
setAsyncRequestStatus
.String toIdString()