com.sap.aii.mapping.api

Class AbstractTrace

java.lang.Object
  extended by com.sap.aii.mapping.api.AbstractTrace
All Implemented Interfaces:
MappingTrace

public abstract class AbstractTrace
extends Object
implements MappingTrace

A mapping can use an instance of AbstractTrace to add messages to the trace. There are three trace levels info, warning and debug. You can display the messages that you write to the trace with these methods in the test environment of interface mappings, for example. Since you can also set a trace level for each pipeline in the Integration Engine, it depends on this setting if trace messages are written to the trace header of the message at runtime. For details see online documentation.

Since:
SAP NetWeaver '04
See Also:
AbstractTransformation.getTrace()

Constructor Summary
AbstractTrace()
           
 
Method Summary
 void addDebugMessage(String message)
          Add a message with trace level debug to the trace.
 void addDebugMessage(String message, Throwable throwable)
          Add a message with trace level debug to the trace and the stacktrace of throwable.
abstract  void addInfo(String message)
          Add a message with trace level info to the trace.
 void addInfo(String message, Throwable throwable)
          Add a message with trace level info to the trace and the stacktrace of throwable.
 void addTestMessage(String message)
          Add only in test mode a message with trace level debug to the trace.
abstract  void addWarning(String message)
          Add a message with trace level warning to the trace.
 void addWarning(String message, Throwable throwable)
          Add a message with trace level warning to the trace and the stacktrace of throwable.
 boolean isLogging()
          Returns if the trace logs the message or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTrace

public AbstractTrace()
Method Detail

addInfo

public abstract void addInfo(String message)
Description copied from interface: MappingTrace
Add a message with trace level info to the trace.

Specified by:
addInfo in interface MappingTrace
Parameters:
message - the trace message.
See Also:
MappingTrace.addInfo(java.lang.String)

addWarning

public abstract void addWarning(String message)
Description copied from interface: MappingTrace
Add a message with trace level warning to the trace.

Specified by:
addWarning in interface MappingTrace
Parameters:
message - the trace message.
See Also:
MappingTrace.addWarning(java.lang.String)

addDebugMessage

public void addDebugMessage(String message)
Add a message with trace level debug to the trace.

Parameters:
message - the trace message.

isLogging

public boolean isLogging()
Returns if the trace logs the message or not.

Returns:
false, iff no message is logged(info, warning, debug) otherwise true

addTestMessage

public void addTestMessage(String message)
Add only in test mode a message with trace level debug to the trace.

Parameters:
message - the trace message.

addInfo

public void addInfo(String message,
                    Throwable throwable)
Add a message with trace level info to the trace and the stacktrace of throwable.

Parameters:
message - the trace message.
throwable - the Throwable which stacktrace is witten to the trace.

addWarning

public void addWarning(String message,
                       Throwable throwable)
Add a message with trace level warning to the trace and the stacktrace of throwable.

Parameters:
message - the trace message.
throwable - the Throwable which stacktrace is witten to the trace.

addDebugMessage

public void addDebugMessage(String message,
                            Throwable throwable)
Add a message with trace level debug to the trace and the stacktrace of throwable.

Parameters:
message - the trace message.
throwable - the Throwable which stacktrace is witten to the trace.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.mapping.lib.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice