java.lang.Object | +--com.ibm.commerce.ras.LogConfiguration
Stores the configuration data for WCS Logging Service. The WCS Logging Service retrieve all the configuration data from an unique instance of LogConfiguration class.
Nested Class Summary | |
---|---|
static class |
LogConfiguration.Parameters Defines the parameters used for WCS Logging Service configuration |
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
---|---|
protected |
LogConfiguration() Constructor for LogConfiguration . |
Method Summary | |
---|---|
void |
disableLoadingXMLNode() Disables loading the XML node |
protected
void |
enableLoadingXMLNode() Enables loading the XML node |
AS400 |
getAs400() Returns the as400 object. |
org.w3c.dom.Node |
getConfigNode() Returns the configuration node return configuration node |
boolean |
getJrasEnabled() Gets the jrasEnabled. |
java.util.Vector |
getProperties(java.lang.String propertyKey) Returns Vector of properties based on the specified key |
static
LogConfiguration |
getUniqueInstance() Gets an unqiue instance of LogConfiguration. |
void |
initialize(java.lang.String xmlConfigFileName) Initializes the log configuration. |
void |
initialize(java.lang.String xmlConfigFileName,
AS400 as400) Initializes the log configuration. |
void |
initialize(java.lang.String xmlConfigFileName,
java.lang.String instanceName, boolean jras) Initializes the log configuration by parsing the xml |
static void |
main(java.lang.String[] args) Runs a testing. |
void |
messageEnable(boolean enable) Loads the status of message logging. |
void |
setAs400(AS400 as400) Sets the as400 object. |
void |
setCompactFormat(boolean enableCompact) Sets the compact format of message log. |
void |
setConfigNode(org.w3c.dom.Node newConfigNode) Sets the configuration node. |
void |
setInstanceName(java.lang.String instanceName) Sets the instance name. |
void |
setJrasEnabled(boolean jrasEnabled) Sets the jras enabled status. |
void |
setLogFileName(java.lang.String logFileName) Sets the file name of the log file. |
void |
setLogFileSize(long MBsize) Sets the file size of the Log file |
void |
setLogSeverity(java.util.Vector severities) Sets the message logging severities. |
void |
setNotificationEnable(boolean enableNotification) Sets the status of error notification. |
void |
setTraceComponents(java.util.Vector components) Sets the status of tracing components. |
void |
setTraceFileName(java.lang.String logFileName) Sets the file name of the Trace file. |
void |
setTraceFileSize(long MBsize) Sets the file size of the Trace file. |
void |
traceEnable(boolean enable) Sets the status of tracing subsystem. |
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 COPYRIGHT
Constructor Detail |
---|
protected LogConfiguration()
Method Detail |
---|
public void disableLoadingXMLNode()
protected void enableLoadingXMLNode()
public org.w3c.dom.Node getConfigNode()
public java.util.Vector getProperties(java.lang.String propertyKey)
propertyKey
- properties keypublic static LogConfiguration getUniqueInstance()
public void initialize(java.lang.String xmlConfigFileName)
xmlConfigFileName
- log configuration filepublic void initialize(java.lang.String xmlConfigFileName, AS400 as400)
xmlConfigFileName
- log configuration filepublic void initialize(java.lang.String xmlConfigFileName, java.lang.String instanceName, boolean jras)
xmlConfigFileName
- log configuration fileinstanceName
- instance namejras
- true if JRas is used as logging mechanism; false
otherwisepublic static void main(java.lang.String[] args)
public void messageEnable(boolean enable)
enable
- true if message logging is
enabledpublic void setCompactFormat(boolean enableCompact)
enableCompact
- true if compact format is used; false
otherwisepublic void setConfigNode(org.w3c.dom.Node newConfigNode)
newConfigNode
- configuration nodepublic void setInstanceName(java.lang.String instanceName)
instanceName
- instance namepublic void setLogFileName(java.lang.String logFileName)
logFileName
- output log file namepublic void setLogFileSize(long MBsize)
MBsize
- maximum size of the log filepublic void setLogSeverity(java.util.Vector severities)
severities
- message logging severitiespublic void setNotificationEnable(boolean enableNotification)
enableNotification
- true if error notification is enabled;
false otherwisepublic void setTraceComponents(java.util.Vector components)
components
- list of tracing components.public void setTraceFileName(java.lang.String logFileName)
logFileName
- trace file namepublic void setTraceFileSize(long MBsize)
MBsize
- maximum trace file sizepublic void traceEnable(boolean enable)
enable
- true if tracing subsystem is enabled; false
otherisepublic boolean getJrasEnabled()
public void setJrasEnabled(boolean jrasEnabled)
jrasEnabled
- true if jras is used for logging; false
otherwisepublic AS400 getAs400()
public void setAs400(AS400 as400)
as400
- The as400 to set.