IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.core.logging
Class PDExecutionLog

java.lang.Object
  extended by com.ibm.rational.test.lt.core.logging.PDAbstractLog
      extended by com.ibm.rational.test.lt.core.logging.PDExecutionLog
All Implemented Interfaces:
IPDAbstractLog, IPDExecutionLog

public class PDExecutionLog
extends PDAbstractLog
implements IPDExecutionLog


Field Summary
static IPDExecutionLog INSTANCE
           
 
Fields inherited from interface com.ibm.rational.test.lt.core.logging.IPDAbstractLog
ALL, CONFIG, FINE, FINER, FINEST, INFO, NONE, SEVERE, WARNING
 
Constructor Summary
protected PDExecutionLog()
           
 
Method Summary
 void addPDXLogFilter(com.ibm.rational.test.lt.core.logging.IPDXLogFilter f)
           
protected  void formatCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent, com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
           
protected  org.eclipse.hyades.logging.events.cbe.EventFactory getEventFactory(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String[] tokens)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String[] tokens, String correlationValue)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String[] tokens, Throwable exception)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String[] tokens, Throwable exception, String correlationValue)
           
protected  void logCommonBaseEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry, org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
           
 String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String[] tokens)
          Prepare a Message.
 void resetFormatter()
           
 void setLogLevel(int logLevel)
           
 boolean wouldLog(ILTExecutionSubComponent subComponent, int severity)
          Log a CommonBaseEvent record.
protected  boolean wouldLog(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, int severity)
           
 
Methods inherited from class com.ibm.rational.test.lt.core.logging.PDAbstractLog
close, createAnEvent, log, log, log, log, log, log, log, log, prepareMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.rational.test.lt.core.logging.IPDAbstractLog
log, log, log, log, log, log, log, log, prepareMessage
 

Field Detail

INSTANCE

public static IPDExecutionLog INSTANCE
Constructor Detail

PDExecutionLog

protected PDExecutionLog()
Method Detail

addPDXLogFilter

public void addPDXLogFilter(com.ibm.rational.test.lt.core.logging.IPDXLogFilter f)
Specified by:
addPDXLogFilter in interface IPDExecutionLog

log

public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                String msgCatalogId,
                int severity,
                String[] tokens,
                String correlationValue)
Specified by:
log in interface IPDAbstractLog
Overrides:
log in class PDAbstractLog

log

public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                String msgCatalogId,
                int severity,
                String[] tokens,
                Throwable exception,
                String correlationValue)
Specified by:
log in interface IPDAbstractLog
Overrides:
log in class PDAbstractLog

log

public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                String msgCatalogId,
                int severity,
                String[] tokens,
                Throwable exception)
Specified by:
log in interface IPDAbstractLog
Overrides:
log in class PDAbstractLog

log

public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                String msgCatalogId,
                int severity,
                String[] tokens)
Specified by:
log in interface IPDAbstractLog
Overrides:
log in class PDAbstractLog

prepareMessage

public String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                             String msgCatalogId,
                             int severity,
                             String[] tokens)
Description copied from class: PDAbstractLog
Prepare a Message. This is accomplished by retrieving the message from the catalog and substituting the tokens as needed.

Specified by:
prepareMessage in interface IPDAbstractLog
Overrides:
prepareMessage in class PDAbstractLog
Returns:
String

wouldLog

public boolean wouldLog(ILTExecutionSubComponent subComponent,
                        int severity)
Log a CommonBaseEvent record.

Specified by:
wouldLog in interface IPDExecutionLog

wouldLog

protected boolean wouldLog(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                           int severity)
Specified by:
wouldLog in class PDAbstractLog

setLogLevel

public void setLogLevel(int logLevel)
Specified by:
setLogLevel in interface IPDExecutionLog

getEventFactory

protected org.eclipse.hyades.logging.events.cbe.EventFactory getEventFactory(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
Specified by:
getEventFactory in class PDAbstractLog

formatCommonBaseEvent

protected void formatCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent,
                                     com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
Overrides:
formatCommonBaseEvent in class PDAbstractLog
Parameters:
commonBaseEvent - org.eclipse.hyades.logging.events.cbe.CommonBaseEvent
logEntry - com.ibm.rational.test.lt.core.loggin.PDAbstractLog.PDLogEntry

resetFormatter

public void resetFormatter()
Specified by:
resetFormatter in interface IPDExecutionLog

logCommonBaseEvent

protected void logCommonBaseEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry,
                                  org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
Specified by:
logCommonBaseEvent in class PDAbstractLog

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.