com.ibm.commerce.ras
Class LogConfiguration

java.lang.Object
  |
  +--com.ibm.commerce.ras.LogConfiguration

public final class LogConfiguration
extends java.lang.Object

Stores the configuration data for WCS Logging Service. The WCS Logging Service retrieve all the configuration data from an unique instance of LogConfiguration class.


Inner Class Summary
static class LogConfiguration.Parameters
          Defines the parameters used for WCS Logging Service configuration
 
Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
protected LogConfiguration()
          LogConfiguration constructor comment.
 
Method Summary
 void disableLoadingXMLNode()
          Disable loading the XML node
protected  void enableLoadingXMLNode()
          Enable loading the XML node
 org.w3c.dom.Node getConfigNode()
          Returns the configuration node
 java.util.Vector getProperties(java.lang.String propertyKey)
          Returns Vector of properties based on the specified key
static LogConfiguration getUniqueInstance()
          This method returns an unqiue instance of LogConfiguration.
 void initialize(java.lang.String xmlConfigFileName)
          Initialize the log configuration
 void initialize(java.lang.String xmlConfigFileName, java.lang.String instanceName)
          Initialize the log configuration by parsing the xml
static void main(java.lang.String[] args)
          This method runs a testing.
 void messageEnable(boolean enable)
          Load the status of Message Log
 void setCompactFormat(boolean enableCompact)
          This method set the compact format of message log.
 void setConfigNode(org.w3c.dom.Node newConfigNode)
          This method sets the configuration node
 void setInstanceName(java.lang.String instanceName)
          This method sets the instance name
 void setLogFileName(java.lang.String logFileName)
          This method sets the file name of the Log file
 void setLogFileSize(long MBsize)
          This method sets the file size of the Log file
 void setLogSeverity(java.util.Vector severities)
          This method sets the log severities
 void setNotificationEnable(boolean enableNotification)
          This method sets the status of error notification
 void setTraceComponents(java.util.Vector components)
          This method sets the status of tracing components
 void setTraceFileName(java.lang.String logFileName)
          This method sets the file name of the Trace file
 void setTraceFileSize(long MBsize)
          This method sets the file size of the Trace file
 void traceEnable(boolean enable)
          This method sets the status of Tracing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

LogConfiguration

protected LogConfiguration()
LogConfiguration constructor comment.
Method Detail

disableLoadingXMLNode

public void disableLoadingXMLNode()
Disable loading the XML node

enableLoadingXMLNode

protected void enableLoadingXMLNode()
Enable loading the XML node

getConfigNode

public org.w3c.dom.Node getConfigNode()
Returns the configuration node

getProperties

public java.util.Vector getProperties(java.lang.String propertyKey)
Returns Vector of properties based on the specified key
Parameters:
propertyKey - String

getUniqueInstance

public static LogConfiguration getUniqueInstance()
This method returns an unqiue instance of LogConfiguration.

initialize

public void initialize(java.lang.String xmlConfigFileName)
Initialize the log configuration
Parameters:
xmlConfigFileName - String

initialize

public void initialize(java.lang.String xmlConfigFileName,
                       java.lang.String instanceName)
Initialize the log configuration by parsing the xml
Parameters:
xmlConfigFileName - String
instanceName - String

main

public static void main(java.lang.String[] args)
This method runs a testing.

messageEnable

public void messageEnable(boolean enable)
Load the status of Message Log
Parameters:
enable - boolean

setCompactFormat

public void setCompactFormat(boolean enableCompact)
This method set the compact format of message log.
Parameters:
enableCompact - boolean

setConfigNode

public void setConfigNode(org.w3c.dom.Node newConfigNode)
This method sets the configuration node
Parameters:
newConfigNode - Node

setInstanceName

public void setInstanceName(java.lang.String instanceName)
This method sets the instance name
Parameters:
instanceName - String

setLogFileName

public void setLogFileName(java.lang.String logFileName)
This method sets the file name of the Log file
Parameters:
logFileName - String

setLogFileSize

public void setLogFileSize(long MBsize)
This method sets the file size of the Log file
Parameters:
size - long

setLogSeverity

public void setLogSeverity(java.util.Vector severities)
This method sets the log severities
Parameters:
severities - Vector

setNotificationEnable

public void setNotificationEnable(boolean enableNotification)
This method sets the status of error notification
Parameters:
enableNotification - boolean

setTraceComponents

public void setTraceComponents(java.util.Vector components)
This method sets the status of tracing components
Parameters:
components - Vector

setTraceFileName

public void setTraceFileName(java.lang.String logFileName)
This method sets the file name of the Trace file
Parameters:
fileName - String

setTraceFileSize

public void setTraceFileSize(long MBsize)
This method sets the file size of the Trace file
Parameters:
size - long

traceEnable

public void traceEnable(boolean enable)
This method sets the status of Tracing
Parameters:
enable - boolean