Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler
11g Release 1 (11.1.1.9)
E57090-01


oracle.as.scheduler.request
Class ContentFactory

java.lang.Object
  extended by oracle.as.scheduler.request.ContentFactory


public class ContentFactory
extends java.lang.Object

Factory for request logging and request output.

Since:
release specific (what release of product did this appear in)
Version:
$Header: ess/src/oracle/as/scheduler/request/ContentFactory.java /st_ess_11.1.1.5.0pt/8 2014/06/19 13:26:42 chall Exp $
Author:
ddavison

Field Summary
static java.util.logging.Level DEFAULT_LOG_LEVEL
          Default log level for request loggers.

 

Constructor Summary
ContentFactory()
           

 

Method Summary
static OutputContentHelper getOutputContentHelper(long requestId)
          Gets the helper for creating output content for requests with Standard or Extended request mode.
static OutputContentHelper getOutputContentHelper(long requestId, RuntimeServiceHandle rsh)
          Gets the helper for creating output content for requests with Standard or Extended request mode.
static RequestLogger getRequestLogger(long requestId)
          Gets the request logger for the specified request, which logs to the ESS content store.
static RequestOutput getRequestOutput(RuntimeServiceHandle rsh, long requestId, ContentType contentType, java.lang.String contentName)
          Retrieves the request output and creates the output content in the ESS content store for the request.

 

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

 

Field Detail

DEFAULT_LOG_LEVEL

public static final java.util.logging.Level DEFAULT_LOG_LEVEL
Default log level for request loggers.

Constructor Detail

ContentFactory

public ContentFactory()

Method Detail

getRequestLogger

public static RequestLogger getRequestLogger(long requestId)
                                      throws RequestNotFoundException,
                                             RuntimeServiceException
Gets the request logger for the specified request, which logs to the ESS content store. The request logger uses the logging level specified by SystemProperty.REQUEST_LOG_LEVEL if defined, or else the default level of "INFO".

The name of the content in the ESS content store is requestId.log.

Parameters:
requestId - request id to use.
Throws:
RequestNotFoundException - if the request does not exist.
RuntimeServiceException - in case of any error creating or accessing the log content.

getRequestOutput

public static RequestOutput getRequestOutput(RuntimeServiceHandle rsh,
                                             long requestId,
                                             ContentType contentType,
                                             java.lang.String contentName)
                                      throws RequestNotFoundException,
                                             RuntimeServiceException,
                                             ValidationException
Retrieves the request output and creates the output content in the ESS content store for the request.
Parameters:
rsh - runtime service handle for creating output content.
requestId - request id to use.
contentType - type of output content to create.
contentName - name of the output content
Throws:
RequestNotFoundException - if the request does not exist.
RuntimeServiceException - in case of any error creating or accessing the output content.
ValidationException - if the output content already exists and its content type does not match the given content type.

getOutputContentHelper

public static OutputContentHelper getOutputContentHelper(long requestId)
                                                  throws RequestNotFoundException,
                                                         RuntimeServiceException,
                                                         ValidationException
Gets the helper for creating output content for requests with Standard or Extended request mode.
Parameters:
requestId - id of the request.
Returns:
Output content helper.
Throws:
RequestNotFoundException - if the request does not exist.
RuntimeServiceException - if error accessing the runtime store.
ValidationException - if the request mode is neither Standard nor Extended.

getOutputContentHelper

public static OutputContentHelper getOutputContentHelper(long requestId,
                                                         RuntimeServiceHandle rsh)
                                                  throws RequestNotFoundException,
                                                         RuntimeServiceException,
                                                         ValidationException
Gets the helper for creating output content for requests with Standard or Extended request mode. Each operation will use the user-provided handle, and it is the caller's responsibility to commit or rollback the transaction.
Parameters:
requestId - id of the request.
rsh - runtime service handle.
Returns:
Output content helper.
Throws:
RequestNotFoundException - if the request does not exist.
RuntimeServiceException - if error accessing the runtime store.
ValidationException - if the request mode is neither Standard nor Extended.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Enterprise Scheduler
11g Release 1 (11.1.1.9)
E57090-01


Copyright © 2010, 2015, Oracle and/or its affiliates. All rights reserved.