public interface Updatable
This class allows the job to receive update events initiated by the remote job. When a job request is updated, Oracle Enterprise Scheduler determines whether the client class implements the Updatable interface. If the client class does implement the Updatable
interface, it instantiates a new object of the job class and calls the onEvent
method in the context of the MDB of the hosting application. This method accepts the request status as specified by the remote job and a string representing information in a format known to the job. This method may log information or do some other processing. It then returns an UpdateAction object including a status and a status message.
The Updatable
interface is supported for the following client classes:
AsyncExecutable
.Modifier and Type | Method and Description |
---|---|
UpdateAction |
onEvent(RequestExecutionContext context, RequestParameters parameters, AsyncStatus resultCode, String messagePayload)
Invoked by Enterprise Scheduler when a remote job for an asynchronous request notifies Enterprise Scheduler of a status.
|
UpdateAction onEvent(RequestExecutionContext context, RequestParameters parameters, AsyncStatus resultCode, String messagePayload)
context
- the execution context for associated with this requestparameters
- the request parameters associated with this requestresultCode
- the action that generated this eventmessagePayload
- a String representing the body of this event. The content and format are not known by the Oracle Enterprise Scheduler.