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

E22563-01

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

java.lang.Object
  extended by oracle.apps.fnd.applcp.request.exec.ExecWrapperBase
Direct Known Subclasses:
AsyncExecutableWrapper, ExecutableWrapper

public abstract class ExecWrapperBase
extends java.lang.Object

! HISTORY: ! ! MODIFIED (MM/DD/YY) (Bug #) (Description) ! sonelson - 12/22/10 - 10415033 - suppress writing log trace to request log file ! sonelson - 11/18/10 - 8804374 - log MessageID for INFO, WARNING and SEVERE messages ! sonelson - 11/09/10 - 10268976 - handle ExecutionPausedException ! sonelson - 10/20/10 - 10219439 - static initializer for logger ! sonelson - 09/29/10 - 10051306 - handle ExecutionManualRecoveryException ! sonelson - 09/27/10 - - add code history !


Field Summary
 java.lang.Object jobInstance
           
static java.lang.String LOGGER_PREFIX
          The prefix to use when logging messages via ODL.
static java.util.logging.Logger oLog
           
 
Constructor Summary
ExecWrapperBase()
           
 
Method Summary
protected  boolean canLog(java.util.logging.Level level)
          Check if log message can be written to the ODL log at a particular level.
protected  void cleanup()
           
 void execute(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
          Implements the execute() method from the Executable interface.
abstract  void executeHelper(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters params)
           
protected  void init(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters parameters)
          Initialize instance
 void setExecutable(java.lang.Class<?> exec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oLog

public static java.util.logging.Logger oLog

jobInstance

public java.lang.Object jobInstance

LOGGER_PREFIX

public static final java.lang.String LOGGER_PREFIX
The prefix to use when logging messages via ODL.

See Also:
Constant Field Values
Constructor Detail

ExecWrapperBase

public ExecWrapperBase()
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
Implements the execute() method from the Executable interface.

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 abstract 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
Throws:
oracle.as.scheduler.ExecutionErrorException
oracle.as.scheduler.ExecutionWarningException
oracle.as.scheduler.ExecutionCancelledException
oracle.as.scheduler.ExecutionPausedException
oracle.as.scheduler.ExecutionManualRecoveryException

init

protected void init(oracle.as.scheduler.RequestExecutionContext context,
                    oracle.as.scheduler.RequestParameters parameters)
             throws java.lang.Throwable
Initialize instance

Throws:
java.lang.Throwable

cleanup

protected void cleanup()

canLog

protected boolean canLog(java.util.logging.Level level)
Check if log message can be written to the ODL log at a particular level.

Parameters:
level - a Level value
Returns:
a boolean value

setExecutable

public void setExecutable(java.lang.Class<?> exec)

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

E22563-01

Copyright © 2011 Oracle. All Rights Reserved.