|
Oracle Fusion Middleware extensions for Enterprise Scheduler Service 11g Release 7 (11.1.7) E22563-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.apps.fnd.applcp.request.exec.ExecWrapperBase
public abstract class ExecWrapperBase
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.
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 |
---|
public static java.util.logging.Logger oLog
public java.lang.Object jobInstance
public static final java.lang.String LOGGER_PREFIX
Constructor Detail |
---|
public ExecWrapperBase()
Method Detail |
---|
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
context
- the context of the current requestparams
- the parameters associated with this request
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 recoverypublic 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
oracle.as.scheduler.ExecutionErrorException
oracle.as.scheduler.ExecutionWarningException
oracle.as.scheduler.ExecutionCancelledException
oracle.as.scheduler.ExecutionPausedException
oracle.as.scheduler.ExecutionManualRecoveryException
protected void init(oracle.as.scheduler.RequestExecutionContext context, oracle.as.scheduler.RequestParameters parameters) throws java.lang.Throwable
java.lang.Throwable
protected void cleanup()
protected boolean canLog(java.util.logging.Level level)
level
- a Level
value
boolean
valuepublic void setExecutable(java.lang.Class<?> exec)
|
Oracle Fusion Middleware extensions for Enterprise Scheduler Service 11g Release 7 (11.1.7) E22563-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |