|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.logging.LogRecord
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
public final class CommonBaseEventLogRecord
Extension of the Java Logging java.util.logging.LogRecord
class used to encapsulate a Common Base Event v1.0.1 or
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent within a
java.util.logging.LogRecord.
This extension class is required to log org.eclipse.hyades.logging.events.cbe.CommonBaseEvent
instances through the Java Logging infrastructure.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances are created via the the single argument constructor that accepts a
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent
reference. Alternatively,
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances may be created via the the double argument constructor that accepts
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent and
java.util.logging.Level references. The following
java.util.logging.LogRecord properties are mapped to the
parameter org.eclipse.hyades.logging.events.cbe.CommonBaseEvent
based on its internal state or the java.util.logging.LogRecord
default values (see the associated setter APIs for each property for mapping details):
java.util.logging.LogRecord Property |
Value |
|---|---|
| level | SEVERE if the parameter Common Base Event's severity is
set and is greater or equal to 50, WARNING if the parameter
Common Base Event's severity is set and is between 30 and 49 (inclusive) or
INFO if the parameter Common Base Event's severity is set and
is less than or equal to 29 or OFF if the parameter Common
Base Event's severity is not set. |
| sequenceNumber | A new unique value in increasing order within a JVM as initialized by
the java.util.logging.LogRecord super class. |
| threadID | A new unique value for the current thread as initialized by the
java.util.logging.LogRecord super class. |
| millis | The current time in milliseconds as initialized by the
java.util.logging.LogRecord super class if the parameter
Common Base Event's creationTime is not set. |
NOTE: If the parameter Common Base Event log record is null,
a java.util.logging.LogRecord will be constructed with a
OFF level, null message with no Common Base
Event capabilities.
NOTE: Using any of the deprecated constructors results in resorting to the
java.util.logging.LogRecord programming model (e.g. no Common
Base Event capabilities).
NOTE: If the parameter Common Base Event log record does not contain either
a Situation and/or SourceComponentId property,
default properties will be constructed to ensure a well-formed
Common Base Event.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in the
encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Property |
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property |
|---|---|
| level | ExtendedDataElement[0...n].Name = "CommonBaseEventLogRecord:level" ExtendedDataElement[0...n].Type = "noValue" ExtendedDataElement[0...n].Children[0].Name = "name" ExtendedDataElement[0...n].Children[0].Type = "string" ExtendedDataElement[0...n].Children[0].Values[0] = <level's name> ExtendedDataElement[0...n].Children[1].Name = "value" ExtendedDataElement[0...n].Children[0].Type = "int" ExtendedDataElement[0...n].Children[0].Values[0] = <level's numerical value> |
| loggerName | ExtendedDataElement[0...n].Name = "CommonBaseEventLogRecord:loggerName"
ExtendedDataElement[0...n].Type = "string" ExtendedDataElement[0...n].Values[0] = <logger's name> |
| message# |
Unresolved (e.g. not localized or formatted) messages: MsgDataElement.MsgCatalogId = <message> - or - Resolved (e.g. localized and formatted) messages: msg = <message> |
| millis | creationTime = <millis> |
| parameters* | MsgDataElement.MsgCatalogTokens = <string representation of
parameters> |
| resourceBundle*# | [not mapped] |
| resourceBundleName | MsgDataElement.MsgCatalog = <resource bundle name> MsgDataElement.MsgCatalogType = "Java" |
| sequenceNumber | ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:sequenceNumber" ExtendedDataElement[0...n].Type = "long" ExtendedDataElement[0...n].Values[0] = <sequence number> |
| sourceClassName | ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:sourceClassName" ExtendedDataElement[0...n].Type = "string" ExtendedDataElement[0...n].Values[0] = <source class name> |
| sourceMethodName | ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:sourceMethodName" ExtendedDataElement[0...n].Type = "string" ExtendedDataElement[0...n].Values[0] = <source method name> |
| threadID | ExtendedDataElement[0...n].Name = "CommonBaseEventLogRecord:threadID"
ExtendedDataElement[0...n].Type = "int" ExtendedDataElement[0...n].Values[0] = <thread ID> |
| thrown* | ExtendedDataElement[0...n].Name = "CommonBaseEventLogRecord:stackTrace" ExtendedDataElement[0...n].Type = "stringArray" ExtendedDataElement[0...n].Values[0...n] = [< java.lang.Throwable's class name>[: <
java.lang.Throwable's localized message>]]ExtendedDataElement[0...n].Values[(n + 1)...m] = < java.lang.Throwable's stackTraceElement[0...(m - (n + 1))]>]ExtendedDataElement[0...n].Children[0...m].Name = "Cause" ExtendedDataElement[0...n].Children[0...n].Type = "stringArray" ExtendedDataElement[0...n].Children[0...m].Values[0...n] = <cause's class name>[: <cause's localized message>] ExtendedDataElement[0...n].Children[0...m].Values[(n + 1)...m] = <cause's stackTraceElement[0...(m - (n + 1))]> |
* java.util.logging.LogRecord property is stored in
java.util.logging.LogRecord super class to eliminate loss of
data.
# When the
If the Extended Data Element's
Names identifying the associated
NOTE: When setting associated
NOTE: The Java Logging classes must be on the CLASSPATH at run-time to
utilize this extension class.
This namespace is intended for use only by
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
This name property is prefixed by the
NOTE: The value of this
The following
NOTE: If the parameter Common Base Event log record is
NOTE: If the parameter Common Base Event log record does not contain either
a
The following
NOTE: If the parameter Common Base Event log record is
NOTE: If the parameter Common Base Event log record does not contain either
a
Using this constructor will result in the construction of a
Using this constructor will result in the construction of a
Using this constructor will result in the construction of a
This API will throw a
If the encapsulated Common Base Event log record is
If the encapsulated Common Base Event log record is
When the
If the encapsulated Common Base Event log record is
If the encapsulated Common Base Event log record is
*
NOTE: This API delegates to both the associated API in the
When this method is invoked with a non-null resource bundle name, the
If the encapsulated Common Base Event log record is
If the encapsulated Common Base Event log record is
If the encapsulated Common Base Event log record is
If the encapsulated Common Base Event log record is
If the encapsulated Common Base Event log record is
*
If the Extended Data Element's
NOTE: This API delegates to both the associated API in the
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
See the associated setter API for more details on the mapping of this
The formatted XML fragment is the representation of the encapsulated
Common Base Event instance variable and not the XML fragment
representation of the complete
The formatted XML document is the representation of the encapsulated
Common Base Event instance variable and not the XML document
representation of the complete
java.util.logging.LogRecord.resourceBundleName
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
is set to a non-null resource bundle name, the non-null java.util.logging.LogRecord.message property
is assumed to be resolved (e.g. localized and formatted) and set to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
property. Conversely, when the java.util.logging.LogRecord.resourceBundleName
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
is not set (e.g. null resource bundle name), the non-null java.util.logging.LogRecord.message property
is assumed to be unresolved (e.g. no localized or formatted) and set to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msg
property. Furthermore, when the java.util.logging.LogRecord.resourceBundleName
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
is set to a non-null resource bundle name, the java.util.logging.LogRecord.message
property is assumed to be resolved (e.g. localized and formatted) and moved from the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msg property to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
property. Conversely, when the java.util.logging.LogRecord.resourceBundleName
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
is set to a null resource bundle name, the java.util.logging.LogRecord.message property
is assumed to be unresolved (e.g. no localized or formatted) and moved from the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
property to the org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msg
property. Noteworthy, the java.util.logging.LogRecord.resourceBundle is not used to
determine if the java.util.logging.LogRecord.message property is resolved
(e.g. localized and formatted) since the resource bundle name
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
cannot be resolved from the java.util.logging.LogRecord.resourceBundle thereby generating
an invalid Common Base Event (e.g. org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
without the required org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog).
values property is
larger than 1024 characters, the string is segmented into a String array of
1024-character elements and set on the Extended Data Element. However, if the
Extended Data Element's values property is 1024 or less
characters, the string is set directly on the first element a String array
and set on the Extended Data Element. As such, the type
property is set to stringArray.
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
properties in the encapsulated Common Base Event for the
java.util.logging.LogRecord properties are provided as static
string constants. These name properties are prefixed by the
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
properties in the encapsulated Common Base Event, multiple like-named
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement are
permitted but no there is no guarantee which
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement is
retrieved when calling this class' getter APIs. That is, the predefined names
for the
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
(e.g. static string constants) are intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
LogRecord,
CommonBaseEvent,
IExternalizableToXml,
Serialized Form
Field Summary
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_LEVEL
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's level.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_LEVEL_NAME
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's child which contains the java.util.logging.LogRecord's
level's name.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_LEVEL_VALUE
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's child which contains the java.util.logging.LogRecord's
level's value.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_LOGGER_NAME
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's logger
name.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_NAMESPACE
Instance variable which holds the name space property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
s.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_SEQUENCE_NUMBER
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's sequence
number.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_SOURCE_CLASS_NAME
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's source
class name.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_SOURCE_METHOD_NAME
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's source
method name.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_THREAD_ID
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's thread
ID.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_THROWN
Instance variable which holds the name property of the encapsulated
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's thrown.
static java.lang.StringEXTENDED_DATA_ELEMENT_NAME_THROWN_STACK_FRAME
Deprecated. As of 3.1, this property is no longer relevant (see #setThrown(Throwable)).
Constructor Summary
CommonBaseEventLogRecord(CommonBaseEvent commonBaseEvent)
Single parameter constructor to create a Common Base Event log record
with the parameter Common Base Event.
CommonBaseEventLogRecord(CommonBaseEvent commonBaseEvent,
java.util.logging.Level level)
Double parameter constructor to create a Common Base Event log record
with the parameter Common Base Event and a specified logging level.
CommonBaseEventLogRecord(java.util.logging.Level level)
Deprecated. Use CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level).
CommonBaseEventLogRecord(java.util.logging.Level level,
java.lang.String message)
Deprecated. Use CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level).
CommonBaseEventLogRecord(java.util.logging.LogRecord logRecord)
Deprecated. Use CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level).
Method Summary
java.lang.StringexternalizeCanonicalXmlDocString()
Generates the formatted XML document representation of the encapsulated
Common Base Event property.
java.lang.StringexternalizeCanonicalXmlString()
Generates the formatted XML fragment representation of the encapsulated
Common Base Event property.
CommonBaseEventgetCommonBaseEvent()
Gets the value of the commonBaseEvent instance variable.
java.util.logging.LevelgetLevel()
Gets the level filter from the encapsulated Common Base Event or
java.util.logging.LogRecord super class.
java.lang.StringgetLoggerName()
Gets the log record's associated logger name from the encapsulated Common
Base Event or java.util.logging.LogRecord super class.
java.lang.StringgetMessage()
Gets the string log message from the encapsulated Common Base Event or
java.util.logging.LogRecord super class.
longgetMillis()
Gets the time stamp in milliseconds from the encapsulated Common Base
Event or java.util.logging.LogRecord super class.
java.lang.Object[]getParameters()
Gets the array of message parameters from the encapsulated Common Base
Event or java.util.logging.LogRecord super class.
java.lang.StringgetResourceBundleName()
Gets the level filter from the encapsulated Common Base Event or
java.util.logging.LogRecord super class.
longgetSequenceNumber()
Gets the unique sequence number from the encapsulated Common Base Event
or java.util.logging.LogRecord super class.
java.lang.StringgetSourceClassName()
Gets the name of the source class from the encapsulated Common Base Event
or java.util.logging.LogRecord super class.
java.lang.StringgetSourceMethodName()
Gets the name of the source method from the encapsulated Common Base
Event or java.util.logging.LogRecord super class.
intgetThreadID()
Gets the unique ID of an associated thread from the encapsulated Common
Base Event or java.util.logging.LogRecord super class.
voidsetCommonBaseEvent(CommonBaseEvent commonBaseEvent)
Deprecated. Use CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level)
constructors.
voidsetLevel(java.util.logging.Level level)
Sets the non-null parameter level filter on the encapsulated Common Base
Event or java.util.logging.LogRecord super class.
voidsetLoggerName(java.lang.String name)
Sets the log record's associated logger name on the encapsulated Common
Base Event or java.util.logging.LogRecord super class.
voidsetMessage(java.lang.String message)
Sets the string log message on the encapsulated Common Base Event or
java.util.logging.LogRecord super class.
voidsetMillis(long millis)
Sets the time stamp in milliseconds on the encapsulated Common Base Event
or java.util.logging.LogRecord super class.
voidsetParameters(java.lang.Object[] parameters)
Sets the array of message parameters on the encapsulated Common Base
Event or java.util.logging.LogRecord super class.
voidsetResourceBundleName(java.lang.String name)
Sets the name of the resource bundle on the encapsulated Common Base
Event or java.util.logging.LogRecord super class.
voidsetSequenceNumber(long seq)
Sets the unique sequence number on the encapsulated Common Base Event or
java.util.logging.LogRecord super class.
voidsetSourceClassName(java.lang.String sourceClassName)
Sets the name of the source class on the encapsulated Common Base Event
or java.util.logging.LogRecord super class.
voidsetSourceMethodName(java.lang.String sourceMethodName)
Sets the name of the source method on the encapsulated Common Base Event
or java.util.logging.LogRecord super class.
voidsetThreadID(int threadID)
Sets the unique ID of an associated thread on the encapsulated Common
Base Event or java.util.logging.LogRecord super class.
voidsetThrown(java.lang.Throwable thrown)
Sets an exception on the encapsulated Common Base Event or
java.util.logging.LogRecord super class.
java.lang.StringtoString()
Returns the textual representation of this
CommonBaseEventLogRecord.
Methods inherited from class java.util.logging.LogRecord
getResourceBundle, getThrown, setResourceBundle
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Field Detail
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_NAMESPACE
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
s.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
to easily identify
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
s associated with java.util.logging.LogRecord properties.
EXTENDED_DATA_ELEMENT_NAME_LEVEL
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_LEVEL
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's level.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_LEVEL_NAME
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_LEVEL_NAME
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's child which contains the java.util.logging.LogRecord's
level's name.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_LEVEL_VALUE
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_LEVEL_VALUE
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's child which contains the java.util.logging.LogRecord's
level's value.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_LOGGER_NAME
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_LOGGER_NAME
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's logger
name.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_SEQUENCE_NUMBER
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_SEQUENCE_NUMBER
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's sequence
number.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_SOURCE_CLASS_NAME
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_SOURCE_CLASS_NAME
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's source
class name.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_SOURCE_METHOD_NAME
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_SOURCE_METHOD_NAME
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's source
method name.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_THREAD_ID
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_THREAD_ID
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's thread
ID.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_THROWN
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_THROWN
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
which contains the java.util.logging.LogRecord's thrown.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
EXTENDED_DATA_ELEMENT_NAME_THROWN_STACK_FRAME
public static final java.lang.String EXTENDED_DATA_ELEMENT_NAME_THROWN_STACK_FRAME
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent's
child
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
(s) which contain stack frames from the
java.util.logging.LogRecord's thrown.
CommonBaseEventLogRecord: namespace (see
EXTENDED_DATA_ELEMENT_NAME_NAMESPACE).
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
's name property is intended for use only by
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord.
Constructor Detail
CommonBaseEventLogRecord
public CommonBaseEventLogRecord(CommonBaseEvent commonBaseEvent)
java.util.logging.LogRecord properties are
mapped to the parameter Common Base Event log record based on its
internal state or the java.util.logging.LogRecord default
values (see the associated setter APIs for each property for mapping
details):
java.util.logging.LogRecord PropertyValue
level
SEVERE if the parameter Common Base Event's severity
is set and is greater or equal to 50, WARNING if the
parameter Common Base Event's severity is set and is between 30 and 49
(inclusive) or INFO if the parameter Common Base Event's
severity is set and is less than or equal to 29 or OFF if
the parameter Common Base Event's severity is not set.sequenceNumber
A new unique value in increasing order within a JVM as initialized
by the
java.util.logging.LogRecord super class.threadID
A new unique value for the current thread as initialized by the
java.util.logging.LogRecord super class.millis
The current time in milliseconds as initialized by the
java.util.logging.LogRecord super class if the parameter
Common Base Event's creationTime is not set.null,
a java.util.logging.LogRecord will be constructed with a
OFF level, null message and no Common Base
Event capabilities.
Situation and/or SourceComponentId property,
default properties will be constructed to ensure a well-formed
Common Base Event.
commonBaseEvent - The Common Base Event of the newly created log record.
CommonBaseEventLogRecord
public CommonBaseEventLogRecord(CommonBaseEvent commonBaseEvent,
java.util.logging.Level level)
java.util.logging.LogRecord properties are
mapped to the parameter Common Base Event log record based on its
internal state or the java.util.logging.LogRecord default
values (see the associated setter APIs for each property for mapping
details):
java.util.logging.LogRecord PropertyValue
level
Based on the parameter
java.util.logging.Level.
sequenceNumber
A new unique value in increasing order within a JVM as initialized
by the
java.util.logging.LogRecord super class.threadID
A new unique value for the current thread as initialized by the
java.util.logging.LogRecord super class.millis
The current time in milliseconds as initialized by the
java.util.logging.LogRecord super class if the parameter
Common Base Event's creationTime is not set.null,
a java.util.logging.LogRecord will be constructed with a
OFF level, null message and no Common Base
Event capabilities.
Situation and/or SourceComponentId property,
default properties will be constructed to ensure a well-formed
Common Base Event.
commonBaseEvent - The Common Base Event of the newly created log record.level - The logging level of the newly created log record.
CommonBaseEventLogRecord
public CommonBaseEventLogRecord(java.util.logging.Level level,
java.lang.String message)
CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level).
java.util.logging.LogRecord with no Common Base Event
capabilities.
level - The logging level of the newly created log record.message - The log message of the newly created log record.
CommonBaseEventLogRecord
public CommonBaseEventLogRecord(java.util.logging.Level level)
CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level).
java.util.logging.LogRecord with no Common Base Event
capabilities.
level - The logging level of the newly created log record.
CommonBaseEventLogRecord
public CommonBaseEventLogRecord(java.util.logging.LogRecord logRecord)
CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level).
java.util.logging.LogRecord.
java.util.logging.LogRecord with no Common Base Event
capabilities.
logRecord - The java.util.logging.LogRecord of the newly
created log record.
Method Detail
setCommonBaseEvent
public void setCommonBaseEvent(CommonBaseEvent commonBaseEvent)
CommonBaseEventLogRecord(CommonBaseEvent)
or
CommonBaseEventLogRecord(CommonBaseEvent, Level)
constructors.
commonBaseEvent - The new value of the commonBaseEvent instance variable.
setLevel
public void setLevel(java.util.logging.Level level)
java.util.logging.LogRecord super class.
java.lang.NullPointerException is
the parameter level filter is null.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
level
ExtendedDataElement[0...n].Name = "CommonBaseEventLogRecord:level"
ExtendedDataElement[0...n].Type = "noValue"
ExtendedDataElement[0...n].Children[0].Name = "name"
ExtendedDataElement[0...n].Children[0].Type = "string"
ExtendedDataElement[0...n].Children[0].Values[0] = <level's name>
ExtendedDataElement[0...n].Children[1].Name = "value"
ExtendedDataElement[0...n].Children[0].Type = "int"
ExtendedDataElement[0...n].Children[0].Values[0] = <level's numerical
value>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setLevel in class java.util.logging.LogRecord
level - The non-null level filter, for example ALL.LogRecord.setLevel(java.util.logging.Level)
setLoggerName
public void setLoggerName(java.lang.String name)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
loggerName
ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:loggerName"
ExtendedDataElement[0...n].Type = "string"
ExtendedDataElement[0...n].Values[0] = <logger's name>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setLoggerName in class java.util.logging.LogRecord
name - The log record's associated logger name.LogRecord.setLoggerName(java.lang.String)
setMessage
public void setMessage(java.lang.String message)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
msg
Unresolved (e.g. not localized or formatted) messages:
MsgDataElement.MsgCatalogId = <message>
- or -
Resolved (e.g. localized and formatted) messages:
msg = <message>
java.util.logging.LogRecord.resourceBundleName
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
is set to a non-null resource bundle name, the parameter
message is assumed to be resolved (e.g. localized and formatted) and set to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
property. Conversely, when the java.util.logging.LogRecord.resourceBundleName
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
is not set (e.g. null resource bundle name), the parameter
message is assumed to be unresolved (e.g. no localized or formatted) and set to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msg
property. Noteworthy, the java.util.logging.LogRecord.resourceBundle is not used to
determine if the java.util.logging.LogRecord.message property is resolved
(e.g. localized and formatted) since the resource bundle name
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
cannot be resolved from the java.util.logging.LogRecord.resourceBundle thereby generating
an invalid Common Base Event (e.g. org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
without the required org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog).
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setMessage in class java.util.logging.LogRecord
message - The string log message.LogRecord.setMessage(java.lang.String)
setMillis
public void setMillis(long millis)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
millis
creationTime = <millis>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setMillis in class java.util.logging.LogRecord
millis - The time stamp in milliseconds.LogRecord.setMillis(long)
setParameters
public void setParameters(java.lang.Object[] parameters)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
parameters*
MsgDataElement.MsgCatalogTokens = <string representation of
parameters>
java.util.logging.LogRecord property is stored
in java.util.logging.LogRecord super class to eliminate
loss of data.
java.util.logging.LogRecord super class and the
encapsulated Common Base Event.
setParameters in class java.util.logging.LogRecord
parameters - The array of message parameters.LogRecord.setParameters(java.lang.Object[])
setResourceBundleName
public void setResourceBundleName(java.lang.String name)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
resourceBundleName
MsgDataElement.MsgCatalog = <resource bundle name>
MsgDataElement.MsgCatalogType = "Java"
java.util.logging.LogRecord.message property is assumed to be
resolved (e.g. localized and formatted) and moved from the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msg
property to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
property. Conversely, when this method is invoked with a null resource bundle name, the
java.util.logging.LogRecord.message property is assumed to be
unresolved (e.g. no localized or formatted) and moved from the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
property to the
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msg
property. Noteworthy, the java.util.logging.LogRecord.resourceBundle is not used to
determine if the java.util.logging.LogRecord.message property is resolved
(e.g. localized and formatted) since the resource bundle name
(e.g org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog)
cannot be resolved from the java.util.logging.LogRecord.resourceBundle thereby generating
an invalid Common Base Event (e.g. org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalogId
without the required org.eclipse.hyades.logging.events.cbe.CommonBaseEvent.msgDataElement.MsgCatalog).
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setResourceBundleName in class java.util.logging.LogRecord
name - The name of the resource bundle.LogRecord.setResourceBundleName(java.lang.String)
setSequenceNumber
public void setSequenceNumber(long seq)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
sequenceNumber
ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:sequenceNumber"
ExtendedDataElement[0...n].Type = "long"
ExtendedDataElement[0...n].Values[0] = <sequence number>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setSequenceNumber in class java.util.logging.LogRecord
seq - The unique sequence number.LogRecord.setSequenceNumber(long)
setSourceClassName
public void setSourceClassName(java.lang.String sourceClassName)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
sourceClassName
ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:sourceClassName"
ExtendedDataElement[0...n].Type = "string"
ExtendedDataElement[0...n].Values[0] = <source class name>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setSourceClassName in class java.util.logging.LogRecord
sourceClassName - The name of the source class.LogRecord.setSourceClassName(java.lang.String)
setSourceMethodName
public void setSourceMethodName(java.lang.String sourceMethodName)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
sourceMethodName
ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:sourceMethodName"
ExtendedDataElement[0...n].Type = "string"
ExtendedDataElement[0...n].Values[0] = <source method name>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setSourceMethodName in class java.util.logging.LogRecord
sourceMethodName - The name of the source method.LogRecord.setSourceMethodName(java.lang.String)
setThreadID
public void setThreadID(int threadID)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
threadID
ExtendedDataElement[0...n].Name =
"CommonBaseEventLogRecord:threadID"
ExtendedDataElement[0...n].Type = "int"
ExtendedDataElement[0...n].Values[0] = <thread ID>
null, this API will delegate to the associated API in the
java.util.logging.LogRecord super class.
setThreadID in class java.util.logging.LogRecord
threadID - The unique ID of an associated thread.LogRecord.setThreadID(int)
setThrown
public void setThrown(java.lang.Throwable thrown)
java.util.logging.LogRecord super class.
org.eclipse.hyades.logging.java.CommonBaseEventLogRecord
instances map java.util.logging.LogRecord properties in
the encapsulated Common Base Event using the following mapping:
java.util.logging.LogRecord Propertyorg.eclipse.hyades.logging.events.cbe.CommonBaseEvent Property
thrown*
ExtendedDataElement[0...n].Name = "CommonBaseEventLogRecord:stackTrace"
ExtendedDataElement[0...n].Type = "stringArray"
ExtendedDataElement[0...n].Values[0...n] =
[< java.lang.Throwable's class name>[: <
java.lang.Throwable's localized message>]]
ExtendedDataElement[0...n].Values[(n + 1)...m] =
< java.lang.Throwable's stackTraceElement[0...(m - (n + 1))]>]
ExtendedDataElement[0...n].Children[0...m].Name = "Cause"
ExtendedDataElement[0...n].Children[0...n].Type = "stringArray"
ExtendedDataElement[0...n].Children[0...m].Values[0...n] =
<cause's class name>[: <cause's localized message>]
ExtendedDataElement[0...n].Children[0...m].Values[(n + 1)...m] =
<cause's stackTraceElement[0...(m - (n + 1))]>
java.util.logging.LogRecord property is stored
in java.util.logging.LogRecord super class to eliminate
loss of data.
values property is
larger than 1024 characters, the string is segmented into a String array of
1024-character elements and set on the Extended Data Element. However, if the
Extended Data Element's values property is 1024 or less
characters, the string is set directly on the first element a String array
and set on the Extended Data Element. As such, the type
property is set to stringArray.
java.util.logging.LogRecord super class and the
encapsulated Common Base Event.
setThrown in class java.util.logging.LogRecord
thrown - An exception associated with this log record.LogRecord.setThrown(java.lang.Throwable),
EventHelpers.convertToExtendedDataElement(Throwable, String).
getCommonBaseEvent
public CommonBaseEvent getCommonBaseEvent()
getLevel
public java.util.logging.Level getLevel()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getLevel in class java.util.logging.LogRecord
ALL.LogRecord.getLevel()
getLoggerName
public java.lang.String getLoggerName()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getLoggerName in class java.util.logging.LogRecord
LogRecord.getLoggerName()
getMessage
public java.lang.String getMessage()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getMessage in class java.util.logging.LogRecord
LogRecord.getMessage()
getMillis
public long getMillis()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getMillis in class java.util.logging.LogRecord
LogRecord.getMillis()
getParameters
public java.lang.Object[] getParameters()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getParameters in class java.util.logging.LogRecord
LogRecord.getParameters()
getResourceBundleName
public java.lang.String getResourceBundleName()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getResourceBundleName in class java.util.logging.LogRecord
LogRecord.getResourceBundleName()
getSequenceNumber
public long getSequenceNumber()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getSequenceNumber in class java.util.logging.LogRecord
LogRecord.getSequenceNumber()
getSourceClassName
public java.lang.String getSourceClassName()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getSourceClassName in class java.util.logging.LogRecord
LogRecord.getSourceClassName()
getSourceMethodName
public java.lang.String getSourceMethodName()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getSourceMethodName in class java.util.logging.LogRecord
LogRecord.getSourceMethodName()
getThreadID
public int getThreadID()
java.util.logging.LogRecord super class.
java.util.logging.LogRecord property.
getThreadID in class java.util.logging.LogRecord
LogRecord.getThreadID()
externalizeCanonicalXmlString
public java.lang.String externalizeCanonicalXmlString()
java.util.logging.LogRecord.
externalizeCanonicalXmlString in interface IExternalizableToXml
null if the value of the
commonBaseEvent instance variable is set to null.
externalizeCanonicalXmlDocString
public java.lang.String externalizeCanonicalXmlDocString()
java.util.logging.LogRecord.
externalizeCanonicalXmlDocString in interface IExternalizableToXml
null if the value of the
commonBaseEvent instance variable is set to null.
toString
public java.lang.String toString()
CommonBaseEventLogRecord.
toString in class java.lang.Object
CommonBaseEventLogRecord.Object.toString()
Overview
Package
Class
Tree
Deprecated
Index
Help
TPTP 4.5.0 Platform Project
Public API Specification
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD