public class ECEventPublisherImpl extends java.lang.Object implements EventPublisher
CommonBaseEvent
object into the
XML representation and persist the XML document into a local database table.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ECEventPublisherImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
changePriority(java.lang.String eventName,
java.lang.String eventKey,
short priority)
This method changes the priority of the event that matches the event key that uniquely identifies
the event.
|
void |
publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method publishes the event based on the priority specified in the event.
|
public static final java.lang.String COPYRIGHT
public ECEventPublisherImpl()
public void publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
publishEvent
in interface EventPublisher
commonBaseEvent
- This is the common base event.EventPublisher.publishEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
public void changePriority(java.lang.String eventName, java.lang.String eventKey, short priority) throws java.lang.Exception
changePriority
in interface EventPublisher
eventName
- This is the name of the event to raise.eventKey
- This is an identifier of a maximum of 50 characters which can uniquely identify the
event.priority
- This is the new priority of the event. The priority value should either be
EventService.PRIORITY_HIGH, EventService.PRIORITY_MEDIUM
or
EventService.PRIORITY_LOW
.
java.lang.Exception
- This is thrown when any exception occurs while changing the event priority.
For those cases where the event immediately executes, the listener may throw and exception and it will
be exposed when this change occurs.