com.ibm.commerce.ras
Class MethodEntryLogEvent
- java.lang.Object
-
- com.ibm.commerce.ras.MethodLogEvent
-
- com.ibm.commerce.ras.MethodEntryLogEvent
-
public class MethodEntryLogEvent extends MethodLogEvent
MethodEntryLogEvent class is used to define the message text recording the entry to a method.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.
-
Constructor Summary
Constructors Constructor and Description MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName)
Constructor for MethodEntryLogEvent.MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName, java.lang.Object[] param)
Constructor for MethodEntryLogEvent.MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, java.lang.String clientId, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName)
Constructor for MethodEntryLogEvent.MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, java.lang.String clientId, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName, java.lang.Object[] param)
Constructor for MethodEntryLogEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
createMessageBody()
Creates the message body.java.lang.String
getCompactMessageBody()
Gets the message body in compact format.java.lang.String
getMessageBody()
Gets the message body in detailed format.void
print()
Print out the message text in specified output manager
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MethodEntryLogEvent
public MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName)
Constructor for MethodEntryLogEvent.- Parameters:
time
- the timestamp of the trace entrythread
- the thread that entry is generated byoutputMgr
- output device to write the logsaComponentName
- trace component the entry belongs toaClassName
- class name that generates the entryaMethodName
- method name that generates the entry
-
MethodEntryLogEvent
public MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, java.lang.String clientId, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName)
Constructor for MethodEntryLogEvent.- Parameters:
time
- the timestamp of the trace entrythread
- the thread that entry is generated byclientId
- the unique Id to represent the client; used to debug double click problemoutputMgr
- output device to write the logsaComponentName
- trace component the entry belongs toaClassName
- class name that generates the entryaMethodName
- method name that generates the entry
-
MethodEntryLogEvent
public MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName, java.lang.Object[] param)
Constructor for MethodEntryLogEvent.- Parameters:
time
- the timestamp of the trace entrythread
- the thread that entry is generated byoutputMgr
- output device to write the logsaComponentName
- trace component the entry belongs toaClassName
- class name that generates the entryaMethodName
- method name that generates the entry
-
MethodEntryLogEvent
public MethodEntryLogEvent(java.sql.Timestamp time, java.lang.String thread, java.lang.String clientId, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName, java.lang.Object[] param)
Constructor for MethodEntryLogEvent.- Parameters:
time
- the timestamp of the trace entrythread
- the thread that entry is generated byclientId
- the unique Id to represent the client; used to debug double click problemoutputMgr
- output device to write the logsaComponentName
- trace component the entry belongs toaClassName
- class name that generates the entryaMethodName
- method name that generates the entry
-
-
Method Detail
-
createMessageBody
public java.lang.String createMessageBody()
Creates the message body. The message body can be in either detailed or compact format.- Overrides:
createMessageBody
in classMethodLogEvent
- Returns:
- formatted message body
-
getCompactMessageBody
public java.lang.String getCompactMessageBody()
Gets the message body in compact format.- Overrides:
getCompactMessageBody
in classMethodLogEvent
- Returns:
- the message text in compact format
-
getMessageBody
public java.lang.String getMessageBody()
Gets the message body in detailed format.- Overrides:
getMessageBody
in classMethodLogEvent
- Returns:
- the message text in detailed format
-
print
public void print()
Print out the message text in specified output manager
-
-