Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 7 (11.1.7)

E22563-07

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

java.lang.Object
  extended by oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
      extended by oracle.apps.fnd.applcp.request.exec.ExecutableWrapper
All Implemented Interfaces:
oracle.as.scheduler.Cancellable, oracle.as.scheduler.Executable

public class ExecutableWrapper
extends ExecWrapperBase
implements oracle.as.scheduler.Executable, oracle.as.scheduler.Cancellable

This class is used to wrap the program executable to perform certain important tasks before control is handed off to the program executable and after control is returned from it.

This class replaces the program executable class as the ESS executable in the pre-processing phase. When ESS enters the execution stage, it run this class. At this point, this class performs two actions:

This class also implements the Cancellable interface. When cancel() is called on this class, it in turn inspects to see if the underlying program executable implements Cancellable and if yes, invokes it. Else no action is performed.

At the end of the execution, all open resources are closed and control is is returned back to ESS. If an unexpected error occurs during program execution, this error is caught, logged (to the request log file) and re-thrown appropriately.

aweisber

Field Summary
 
Fields inherited from class oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
jobInstance, LOGGER_PREFIX
 
Constructor Summary
ExecutableWrapper()
           
 
Method Summary
 void cancel()
          Implement the cancel() method in the Cancellable interface.
 void execute(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
          Implements the execute() method from the Executable interface.
 void executeHelper(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
           
 
Methods inherited from class oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
canLog, cleanup, init, setExecutable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutableWrapper

public ExecutableWrapper()
Method Detail

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
Description copied from class: ExecWrapperBase
Implements the execute() method from the Executable 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.ExecutionManualRecoveryException - if an error occurs during execution of async program job logic that requires manual recovery
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

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()
Implement the cancel() method in the Cancellable interface.

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

Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 7 (11.1.7)

E22563-07

Copyright © 2013 Oracle. All Rights Reserved.