Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


oracle.as.scheduler.cp.exec
Class ProcessHelper

java.lang.Object
  extended by oracle.as.scheduler.cp.exec.ProcessHelper


public class ProcessHelper
extends java.lang.Object

This class provides helper methods to obtain varioud process-related utilies like input,log and output files as well as some of the other applcore services like logging, messages, profiles and lookups. It must be noted that these APIs can only be called when a request execution is in progress.

Version:
1.0
Author:
Ramkarthik Kalyanasundaram

Method Summary
static void closeAllFiles()
          Close all open input/log/output files that were opened for this request.
static InputFile getInputFile(java.lang.String fileToken)
          Get the input file described by the token
static LogFile getLogFile()
          Get the log file associated with this request.
static OutputFile getOutputFile()
          Get the default output file associated with this request.
static OutputFile getOutputFile(java.lang.String fileName)
          Get the output file with the name fileName.
static OutputFile getOutputFile(java.lang.String fileName, java.lang.String extension)
          Get the output file with the name fileName.extension.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getLogFile

public static LogFile getLogFile()
                          throws java.io.IOException
Get the log file associated with this request.
Returns:
the LogFile object which represents the handle to the file
Throws:
java.io.IOException - if an error occurs accessing the log file
See Also:
LogFile

getOutputFile

public static OutputFile getOutputFile()
                                throws java.io.IOException
Get the default output file associated with this request. The extension for the file is either obtained from the default output extension for the program or defaulted to ".txt".
Returns:
the OutputFile object representing the output file
Throws:
java.io.IOException - if an error occurs accessing the output file

getOutputFile

public static OutputFile getOutputFile(java.lang.String fileName)
                                throws java.io.IOException
Get the output file with the name fileName.
Parameters:
fileName - the name of the output file to create/get
Returns:
the OutputFile object representing the output file
Throws:
java.io.IOException - if an error occurs accessing the file

getOutputFile

public static OutputFile getOutputFile(java.lang.String fileName,
                                       java.lang.String extension)
                                throws java.io.IOException
Get the output file with the name fileName.extension.
Parameters:
fileName - the name of the output file to create/get
extension - the extension of the output file
Returns:
the OutputFile object representing the output file
Throws:
java.io.IOException - if an error occurs accessing the file

getInputFile

public static InputFile getInputFile(java.lang.String fileToken)
Get the input file described by the token
Parameters:
fileToken - the string representing the input file
Returns:
the InputFile object

closeAllFiles

public static void closeAllFiles()
                          throws java.io.IOException
Close all open input/log/output files that were opened for this request.
Throws:
java.io.IOException - if an error occurs closing any of the files

Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.