|
Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.1.5) E20742-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.as.scheduler.cp.exec.ExecutableWrapper
public class ExecutableWrapper
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 Cencellable 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 | |
---|---|
static java.lang.String |
JAVA_RUNTIME_RESOURCE_BUNDLE_BASE_NAME
Constant representing the base name of CP Java Runtime Resouce Bundle. |
static java.lang.String |
LOGGER_PREFIX
The prefix to use when logging messages via ODL. |
Constructor Summary | |
---|---|
ExecutableWrapper()
|
Method Summary | |
---|---|
void |
cancel()
Implement the cancel() method in the Cancellable interface. |
protected boolean |
canLog(java.util.logging.Level level)
Check if log message can be written to the ODL log at a particular level. |
void |
execute(RequestExecutionContext context,
RequestParameters params)
Implements the execute() method from the Executable interface. |
protected void |
init()
Initialize instance variables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JAVA_RUNTIME_RESOURCE_BUNDLE_BASE_NAME
public static final java.lang.String LOGGER_PREFIX
Constructor Detail |
---|
public ExecutableWrapper()
Method Detail |
---|
public void execute(RequestExecutionContext context, RequestParameters params) throws ExecutionErrorException, ExecutionWarningException, ExecutionCancelledException, ExecutionPausedException
execute
in interface Executable
context
- the context of the current requestparams
- the parameters associated with this request
ExecutionErrorException
- if an error occurs during execution
ExecutionWarningException
- if an warning occurs during execution
ExecutionCancelledException
- if execution is cancelled by the
program for any reason
ExecutionPausedException
- if the program logic wants to pause
this requestState
protected void init()
public void cancel()
cancel
in interface Cancellable
protected boolean canLog(java.util.logging.Level level)
level
- a Level
value
boolean
value
|
Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.1.5) E20742-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |