Skip navigation links

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


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.


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)
          Returns 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)
          Returns the request output and creates the output content 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
Returns 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
Returns the request output and creates the output content 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 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.