IBM Rational Performance Tester SDK

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

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

public abstract class PDAbstractLog
extends Object
implements IPDAbstractLog


Field Summary
 
Fields inherited from interface com.ibm.rational.test.lt.core.logging.IPDAbstractLog
ALL, CONFIG, FINE, FINER, FINEST, INFO, NONE, SEVERE, WARNING
 
Constructor Summary
protected PDAbstractLog()
           
 
Method Summary
 void close()
           
protected  void createAnEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
           
protected  void formatCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent, com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
           
protected abstract  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)
          Log a CommonBaseEvent record.
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, int[] tokens)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, int[] tokens, String correlationValue)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, int[] tokens, Throwable exception)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, int[] tokens, Throwable exception, String correlationValue)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String correlationValue)
           
 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)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, Throwable exception)
           
 void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, Throwable exception, String correlationValue)
           
protected abstract  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, int[] tokens)
          Prepare the message with int tokens.
 String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, String msgCatalogId, int severity, String[] tokens)
          Prepare a Message.
protected abstract  boolean wouldLog(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent, int severity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDAbstractLog

protected PDAbstractLog()
Method Detail

close

public void close()

prepareMessage

public String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                             String msgCatalogId,
                             int severity,
                             String[] tokens)
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
Parameters:
subComponent -
msgCatalogId -
severity -
tokens -
Returns:
String

prepareMessage

public String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                             String msgCatalogId,
                             int severity,
                             int[] tokens)
Prepare the message with int tokens.

Specified by:
prepareMessage in interface IPDAbstractLog
See Also:
IPDAbstractLog.prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent, java.lang.String, int, int[])

log

public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                String msgCatalogId,
                int severity)
Log a CommonBaseEvent record.

Specified by:
log in interface IPDAbstractLog

log

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

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

log

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

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

log

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

log

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

log

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

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

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

log

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

log

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

wouldLog

protected abstract boolean wouldLog(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
                                    int severity)

createAnEvent

protected void createAnEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)

getEventFactory

protected abstract org.eclipse.hyades.logging.events.cbe.EventFactory getEventFactory(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)

formatCommonBaseEvent

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

logCommonBaseEvent

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

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.