public class ECEventUtilities
extends java.lang.Object
CommonBaseEvent
objects.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static CommandContext |
createCommandContext(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method creates a version of the command context based on the context information
found in the common base event.
|
static java.lang.String |
getCallerId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method returns the caller identifier associated with the command base event.
|
static java.lang.String |
getChannelId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method returns the channel identifier associated with the command base event.
|
static java.lang.String |
getContextData(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent,
java.lang.String contextName)
This method returns the context data associated with the specified identifier.
|
static boolean |
getExtendedDataElementBooleanAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement,
java.lang.String name)
This method returns the first value of the extended data element that matches
the specified
boolean attribute name. |
static java.sql.Timestamp |
getExtendedDataElementDateAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement,
java.lang.String name)
This method returns the first value of the extended data element that matches
the specified
Timestamp attribute name. |
static java.lang.Integer |
getExtendedDataElementIntegerAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement,
java.lang.String name)
This method returns the first value of the extended data element that matches
the specified
Integer attribute name. |
static java.lang.Long |
getExtendedDataElementLongAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement,
java.lang.String name)
This method returns the first value of the extended data element that matches
the specified
Long attribute name. |
static java.lang.String[] |
getExtendedDataElementStringArrayAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement,
java.lang.String name)
This method returns the first value of the extended data element that matches
the specified
String attribute name. |
static java.lang.String |
getExtendedDataElementStringAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement,
java.lang.String name)
This method returns the first value of the extended data element that matches
the specified
String attribute name. |
static java.lang.String |
getRunAsId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method returns the "run as" identifier associated with the command base event.
|
static java.lang.String |
getStoreId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method returns the store identifier associated with the command base event.
|
static java.lang.String |
maskCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method is used for tracing common base event.
|
static java.lang.String |
maskExtendedDataElement(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement ede)
This method is used for tracing extended data element in a common base event.
|
static void |
raiseCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method creates an
ECEvent with the event data being the common base event. |
static void |
storeCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method publishes the common base event by persisting it into a local
table.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String getContextData(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent, java.lang.String contextName)
commonBaseEvent
- This is the CommonBaseEvent
object.contextName
- This is the identifier representing the context data.
This is a String
object that usually represents the context name and attribute.public static java.lang.String getCallerId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
commonBaseEvent
- This is the common base event.public static java.lang.String getRunAsId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
commonBaseEvent
- This is the common base event.public static java.lang.String getStoreId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
commonBaseEvent
- This is the common base event.public static java.lang.String getChannelId(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
commonBaseEvent
- This is the common base event.public static boolean getExtendedDataElementBooleanAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
boolean
attribute name.extendedDataElement
- This is the extended data element.name
- This is the attribute name.boolean
value that represents the first value that matches the attribute name.public static java.lang.Integer getExtendedDataElementIntegerAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
Integer
attribute name.extendedDataElement
- This is the extended data element.name
- This is the attribute name.Integer
object that represents the first value that matches the attribute name.public static java.lang.String getExtendedDataElementStringAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
String
attribute name.extendedDataElement
- This is the extended data element.name
- This is the attribute name.String
object that represents the first value that matches the attribute name.public static java.lang.String[] getExtendedDataElementStringArrayAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
String
attribute name.extendedDataElement
- This is the extended data element.name
- This is the attribute name.String[]
object that represents the first value that matches the attribute name.public static java.sql.Timestamp getExtendedDataElementDateAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
Timestamp
attribute name.extendedDataElement
- This is the extended data element.name
- This is the attribute name.Timestamp
object that represents the first value that matches the attribute name.public static java.lang.Long getExtendedDataElementLongAttribute(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement, java.lang.String name)
Long
attribute name.extendedDataElement
- This is the extended data element.name
- This is the attribute name.Long
object that represents the first value that matches the attribute name.public static CommandContext createCommandContext(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
commonBaseEvent
- This is the common base event.public static void storeCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
commonBaseEvent
- This is the common base event.EventPublisher.publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
public static void raiseCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe) throws ECException
ECEvent
with the event data being the common base event.cbe
- This is the common base event.ECException
- This is thrown when a problem occurs while one of the listeners is processing the event.public static java.lang.String maskCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
cbe
- This is the common base event.public static java.lang.String maskExtendedDataElement(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement ede)
ede
- This is the extended data element.