public class EngineConfig extends PlatformConfig implements IEngineConfig
DEFAULT_RENDER_OPTION, EMITTER_CONFIGS, ENGINE_LOGGER, FONT_CONFIG, LOG_DESTINATION, LOG_FILE, LOG_LEVEL, LOG_MAX_BACKUP_INDEX, LOG_ROLLING_SIZE, MAX_ROWS_PER_QUERY, REPORT_DOCUMENT_LOCK_MANAGER, RESOURCE_LOCATOR, RESOURCE_PATH, SCRIPT_OBJECTS, STATUS_HANDLER
Constructor and Description |
---|
EngineConfig()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addScriptableJavaObject(java.lang.String jsName,
java.lang.Object obj)
Deprecated.
the user need add the object to the appContext directly.
|
java.util.HashMap |
getAppContext()
returns a hash map that contains appContext
|
java.util.HashMap |
getConfigMap()
Deprecated.
use getProperties() instead.
|
java.lang.String |
getDefaultEmitter(java.lang.String format)
Gets default emitter id of an output format.
|
java.util.HashMap |
getEmitterConfigs()
gets a map for emitter configuration objects
|
java.net.URL |
getFontConfig() |
java.lang.String |
getLogDirectory()
Get directory of the log file
|
java.lang.String |
getLogFile()
Get the name of the log file.
|
java.util.logging.Logger |
getLogger()
return the user's logger set through setLogger.
|
java.util.logging.Level |
getLogLevel()
Get the level of the log file
|
int |
getLogMaxBackupIndex()
Returns the value of the MaxBackupIndex option.
|
int |
getLogRollingSize()
Get the maximum number of bytes that the output file is allowed to reach
before being rolled over to backup files.
|
int |
getMaxRowsPerQuery()
Deprecated.
|
IReportDocumentLockManager |
getReportDocumentLockManager()
return a lock manager.
|
IResourceLocator |
getResourceLocator() |
java.lang.String |
getResourcePath() |
java.util.HashMap |
getScriptObjects()
Deprecated.
use getAppContext() instead.
|
IPlatformContext |
getServletContext()
Deprecated.
use getPlatformContext instead
|
IStatusHandler |
getStatusHandler()
returns the status handler
|
void |
setAppContext(java.util.HashMap appContext)
Set appContext
|
void |
setConfigurationVariable(java.lang.String name,
java.lang.String value)
Deprecated.
use setProperty() instead.
|
void |
setDefaultEmitter(java.lang.String format,
java.lang.String emitterId)
Sets default emitter for an output format.
|
void |
setEmitterConfiguration(java.lang.String format,
java.lang.Object emitterConfig)
sets configuration for a specific extension to engine, i.e., an emitter
extension
|
void |
setEngineContext(IPlatformContext context)
Deprecated.
use setPlatformContext instead.
|
void |
setEngineHome(java.lang.String birtHome)
set the BIRT_HOME system property
|
void |
setFontConfig(java.net.URL fontConfig) |
void |
setLogConfig(java.lang.String directoryName,
java.util.logging.Level level)
set log configuration, i.e., log file name prefix and log level
|
void |
setLogFile(java.lang.String filename)
Set the name of the log file.
|
void |
setLogger(java.util.logging.Logger logger)
set the logger used by the report engine.
|
void |
setLogMaxBackupIndex(int maxBackupIndex)
Set the maximum number of backup files to keep around.
|
void |
setLogRollingSize(int size)
Set the maximum number of bytes that the output file is allowed to reach
before being rolled over to backup files.
|
void |
setMaxRowsPerQuery(int maxRows)
Deprecated.
|
void |
setReportDocumentLockManager(IReportDocumentLockManager manager)
Set report document lock manager
|
void |
setResourceLocator(IResourceLocator resourceLocator) |
void |
setResourcePath(java.lang.String resourcePath) |
void |
setStatusHandler(IStatusHandler handler)
sets the handler for reporting report running status.
|
java.lang.String |
toString()
Output properties for debug tracing
|
public void setEngineHome(java.lang.String birtHome)
birtHome
- the value for the BIRT_HOMT configuration variablepublic void setConfigurationVariable(java.lang.String name, java.lang.String value)
name
- configuration variable namevalue
- configuration variable valuepublic java.util.HashMap getConfigMap()
public void setLogConfig(java.lang.String directoryName, java.util.logging.Level level)
directoryName
- -
the directory name of the log file(e.g C:\Log). Engine appends
a file name with date and time to the directory name (e.g.
C:\Log\BIRT_Engine_2005_02_26_11_26_56.log).level
- the engine log levelpublic void setLogger(java.util.logging.Logger logger)
logger
- public java.util.logging.Logger getLogger()
public java.util.HashMap getScriptObjects()
public void addScriptableJavaObject(java.lang.String jsName, java.lang.Object obj)
jsName
- the name that the object is referenced in JavaScriptobj
- the Java object that is wrapped and scriptedpublic java.util.HashMap getAppContext()
public void setAppContext(java.util.HashMap appContext)
appContext
- public void setEmitterConfiguration(java.lang.String format, java.lang.Object emitterConfig)
extensionID
- identifier for the emitterextensionConfig
- configuration object for the emitter, which must be an
instance of HashMap or IRenderOptionpublic java.util.HashMap getEmitterConfigs()
public IStatusHandler getStatusHandler()
public void setStatusHandler(IStatusHandler handler)
handler
- status handlerpublic java.util.logging.Level getLogLevel()
public java.lang.String getLogDirectory()
public java.lang.String getLogFile()
public void setLogFile(java.lang.String filename)
filename
- public int getLogRollingSize()
public void setLogRollingSize(int size)
size
- public int getLogMaxBackupIndex()
public void setLogMaxBackupIndex(int maxBackupIndex)
maxBackupIndex
- public IReportDocumentLockManager getReportDocumentLockManager()
public void setReportDocumentLockManager(IReportDocumentLockManager manager)
manager
- lock managerpublic void setEngineContext(IPlatformContext context)
context
- the platform contextpublic IPlatformContext getServletContext()
public IResourceLocator getResourceLocator()
public void setResourceLocator(IResourceLocator resourceLocator)
resourceLocator
- the resourceLocator to setpublic java.lang.String getResourcePath()
public void setResourcePath(java.lang.String resourcePath)
resourcePath
- the resourcePath to setpublic java.net.URL getFontConfig()
public void setFontConfig(java.net.URL fontConfig)
fontConfig
- the font configuration file path.public void setMaxRowsPerQuery(int maxRows)
maxRows:
- max rowspublic int getMaxRowsPerQuery()
public void setDefaultEmitter(java.lang.String format, java.lang.String emitterId)
format
- the format.emitterId
- the id of the default emitter.public java.lang.String getDefaultEmitter(java.lang.String format)
format
- the format.public java.lang.String toString()
Object.toString()
Copyright © 2014 OpenText Corp. All rights reserved.