Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.1.5)

E22563-01

oracle.apps.fnd.applcp.request.exec
Class AsyncExecutableWrapper

java.lang.Object
  extended by oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
      extended by oracle.apps.fnd.applcp.request.exec.AsyncExecutableWrapper
All Implemented Interfaces:
oracle.as.scheduler.AsyncCancellable, oracle.as.scheduler.AsyncExecutable, oracle.as.scheduler.Executable, oracle.as.scheduler.Updatable

public class AsyncExecutableWrapper
extends ExecWrapperBase
implements oracle.as.scheduler.AsyncExecutable, oracle.as.scheduler.AsyncCancellable, oracle.as.scheduler.Updatable

! HISTORY: ! ! MODIFIED (MM/DD/YY) (Bug #) (Description) ! sonelson - 11/18/10 - 8804374 - log MessageID for INFO, WARNING and SEVERE messages ! sonelson - 10/27/10 - 10186439 - set AsyncStatus.ERROR_MANUAL_RECOVERY in OnEvent ! sonelson - 10/20/10 - 10219439 - static initializer for logger ! sonelson - 10/05/10 - 9965802 - enhance logging ! sonelson - 10/01/10 - 10051306 - refactor onEvent (); ExecutionManualRecoveryException ! sonelson - 09/27/10 - - add code history !


Field Summary
 
Fields inherited from class oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
jobInstance, LOGGER_PREFIX
 
Constructor Summary
AsyncExecutableWrapper()
           
 
Method Summary
 void cancel(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters requestParams)
          Implement the cancel() method in the AsyncCancellable interface.
 void execute(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
          Implements the execute() method from the AsyncExecutable interface.
 void executeHelper(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
           
 void init(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
          Initialize instance
 oracle.as.scheduler.async.UpdateAction onEvent(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters parameters, oracle.as.scheduler.async.AsyncStatus resultCode, java.lang.String messagePayload)
          Implement the onAction() method in the Updatable interface.
 
Methods inherited from class oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
canLog, cleanup, setExecutable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncExecutableWrapper

public AsyncExecutableWrapper()
Method Detail

init

public void init(oracle.as.scheduler.RequestExecutionContext context,
                 oracle.as.scheduler.RequestParameters params)
          throws java.lang.Throwable
Description copied from class: ExecWrapperBase
Initialize instance

Overrides:
init in class ExecWrapperBase
Throws:
java.lang.Throwable

execute

public void execute(oracle.as.scheduler.RequestExecutionContext context,
                    oracle.as.scheduler.RequestParameters params)
             throws oracle.as.scheduler.ExecutionErrorException,
                    oracle.as.scheduler.ExecutionWarningException,
                    oracle.as.scheduler.ExecutionCancelledException,
                    oracle.as.scheduler.ExecutionPausedException,
                    oracle.as.scheduler.ExecutionManualRecoveryException
Implements the execute() method from the AsyncExecutable interface.

Specified by:
execute in interface oracle.as.scheduler.Executable
Overrides:
execute in class ExecWrapperBase
Parameters:
context - the context of the current request
params - the parameters associated with this request
Throws:
oracle.as.scheduler.ExecutionErrorException - if an error occurs during execution
oracle.as.scheduler.ExecutionWarningException - if an warning occurs during execution
oracle.as.scheduler.ExecutionCancelledException - if execution is cancelled by the program for any reason
oracle.as.scheduler.ExecutionPausedException - if the program logic wants to pause this request
oracle.as.scheduler.ExecutionManualRecoveryException - if an error occurs during execution of async program job logic that requires manual recovery

executeHelper

public void executeHelper(oracle.as.scheduler.RequestExecutionContext context,
                          oracle.as.scheduler.RequestParameters params)
                   throws oracle.as.scheduler.ExecutionErrorException,
                          oracle.as.scheduler.ExecutionWarningException,
                          oracle.as.scheduler.ExecutionCancelledException,
                          oracle.as.scheduler.ExecutionPausedException,
                          oracle.as.scheduler.ExecutionManualRecoveryException
Specified by:
executeHelper in class ExecWrapperBase
Throws:
oracle.as.scheduler.ExecutionErrorException
oracle.as.scheduler.ExecutionWarningException
oracle.as.scheduler.ExecutionCancelledException
oracle.as.scheduler.ExecutionPausedException
oracle.as.scheduler.ExecutionManualRecoveryException

cancel

public void cancel(oracle.as.scheduler.RequestExecutionContext context,
                   oracle.as.scheduler.RequestParameters requestParams)
Implement the cancel() method in the AsyncCancellable interface.

Specified by:
cancel in interface oracle.as.scheduler.AsyncCancellable

onEvent

public oracle.as.scheduler.async.UpdateAction onEvent(oracle.as.scheduler.RequestExecutionContext context,
                                                      oracle.as.scheduler.RequestParameters parameters,
                                                      oracle.as.scheduler.async.AsyncStatus resultCode,
                                                      java.lang.String messagePayload)
Implement the onAction() method in the Updatable interface.

Specified by:
onEvent in interface oracle.as.scheduler.Updatable

Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.1.5)

E22563-01

Copyright © 2011 Oracle. All Rights Reserved.