Constructor and Description |
---|
ECSEmitter(java.lang.String passedJndiName,
java.lang.String _ecsID)
Deprecated.
ECSEmitter constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addUserDataEvent(java.util.Properties properties)
Deprecated.
Creates and sends a user data event.
|
void |
close()
Deprecated.
Instructs the emitter to release all resources that are owned by this object and dependents.
|
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent |
createCommonBaseEvent(java.lang.String eventName)
Deprecated.
Creates an common base event via eventFactory
|
java.lang.String |
getCurrentEcsID()
Deprecated.
Gets the current ECS ID locally stored on the ECSEmitter instance.
|
ComponentMetaData |
getFilterMetaData()
Deprecated.
Used to obtain the filter meta data.
|
ComponentMetaData |
getMetaData()
Deprecated.
Used to obtain the emitter component meta data.
|
java.lang.String |
getParentEcsID()
Deprecated.
Gets the parent ECS ID locally stored on the ECSEmitter instance.
|
int |
getSynchronizationMode()
Deprecated.
Allows the caller to determine the current setting for synchronization in this emitter.
|
int |
getTransactionMode()
Deprecated.
Allows the caller to determine the currently active transaction mode.
|
boolean |
hasNoCorrelationData()
Deprecated.
|
boolean |
isSynchronizationModeSupported(int arg0)
Deprecated.
Allows the caller to determine if a synchronization mode is supported by this emitter.
|
void |
releaseAndEndECS(java.lang.String ecsID)
Deprecated.
Releases the current ECSEmitter.
|
java.lang.String |
sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent arg0)
Deprecated.
Sends an event to the Event Bus.
|
java.lang.String |
sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe,
int synchMode,
int txMod)
Deprecated.
Sends an event to the Event Bus overriding the default emitter behavior with the passed parameters.
|
java.lang.String[] |
sendEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] arg0)
Deprecated.
Sends an array of events to the Event Bus.
|
java.lang.String[] |
sendEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] cbes,
int synchMode,
int txMode)
Deprecated.
Sends an array of events to the Event Bus overriding the default emitter behavior with the passed parameters.
|
void |
setSynchronizationMode(int arg0)
Deprecated.
Sets the default synchronization mode to use when sending events to the Event Bus.
|
void |
setTempCurrentEcsID(java.lang.String newCurEcsID)
Deprecated.
Overrides the content of the current ECS id that is set in the emitted CBEs.
|
void |
setTempParentEcsID(java.lang.String newParEcsID)
Deprecated.
Overrides the value of the parent ECS id that is set in the emitted CBEs.
|
void |
setTransactionMode(int arg0)
Deprecated.
Sets the transaction mode to use when sending events to the Event Bus.
|
public ECSEmitter(java.lang.String passedJndiName, java.lang.String _ecsID) throws com.ibm.websphere.cem.exception.EmitterFactoryCreationException
jndiName
- The jndi Name of the emitter factory. If null is specified,
then "com/ibm/events/configuration/emitter/Default" is used_ecsID
- The new EcsID in case a new correlation sphere needs
to be opened, otherwise nullcom.ibm.websphere.cem.exception.EmitterFactoryCreationException
public java.lang.String sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent arg0) throws EventsException
sendEvent
in interface Emitter
arg0
- the event to be sent to the Event Bus. This may not be null.EventsException
- if an error ocurrs during event processing.Emitter.sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
public java.lang.String sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe, int synchMode, int txMod) throws EventsException
sendEvent
in interface Emitter
cbe
- the event to be sent to the Event Bus. This may not be null.synchMode
- indicates whether the event will be sent synchronously
(SynchronizationMode.SYNCHRONOUS) or asynchronously (SynchronizationMode.ASYNCHRONOUS)
If synchronous, this call will not return until the event has been processed by the event server.
If asynchronous, this call will return as soon as the event emitter has passed the event to the server.
To avoid overriding the synchronization mode, pass a value of SynchronizationMode.DEFAULT.txMod
- indicates whether the event emitter should process the event in the current transaction
(TransactionMode.SAME) or not (TransactionMode.NEW). To avoid overriding the transaction mode,
pass a value of TransactionMode.DEFAULT.EventsException
- if an error ocurrs during event processing.Emitter.sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent, int, int)
public java.lang.String[] sendEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] arg0) throws EventsException
sendEvents
in interface Emitter
arg0
- the array of events to be sent to the Event Bus. This may not be null.EventsException
- if an error ocurrs during event processing.Emitter.sendEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[])
public java.lang.String[] sendEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] cbes, int synchMode, int txMode) throws EventsException
sendEvents
in interface Emitter
cbes
- the array of events to be sent to the Event Bus. This may not be null.synchMode
- indicates whether the event will be sent synchronously
(SynchronizationMode.SYNCHRONOUS) or asynchronously (SynchronizationMode.ASYNCHRONOUS)
If synchronous, this call will not return until the event has been processed by the event server.
If asynchronous, this call will return as soon as the event emitter has passed the event to the server.
To avoid overriding the synchronization mode, pass a value of SynchronizationMode.DEFAULT.txMode
- indicates whether the event emitter should process the event in the current transaction
(TransactionMode.SAME) or not (TransactionMode.NEW). To avoid overriding the transaction mode,
pass a value of TransactionMode.DEFAULT.EventsException
- if an error ocurrs during event processing.Emitter.sendEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent, int, int)
public void setTransactionMode(int arg0) throws TransactionModeNotSupportedException
setTransactionMode
in interface Emitter
arg0
- The transaction mode to use. Valid values are:
TransactionModeNotSupportedException
- if an error occurred in switching
the transaction mode.Emitter.setTransactionMode(int)
public int getTransactionMode()
getTransactionMode
in interface Emitter
Emitter.getTransactionMode()
public int getSynchronizationMode()
getSynchronizationMode
in interface Emitter
Emitter.getSynchronizationMode()
public void setSynchronizationMode(int arg0) throws EmitterException
setSynchronizationMode
in interface Emitter
arg0
- The synchronization mode to use when sending events to the Event Bus.
Valid values are:
EmitterException
- if an error occurred in switching the synchronization mode.Emitter.setSynchronizationMode(int)
public ComponentMetaData getMetaData()
getMetaData
in interface Emitter
Emitter.getMetaData()
public ComponentMetaData getFilterMetaData() throws com.ibm.events.filter.FilterException
getFilterMetaData
in interface Emitter
com.ibm.events.filter.FilterException
- if an error occurred in the filter while obtaining meta data.Emitter.getFilterMetaData()
public void close() throws EventsException
close
in interface Emitter
EventsException
- if any other error occurs releasing resources.Emitter.close()
public boolean isSynchronizationModeSupported(int arg0)
isSynchronizationModeSupported
in interface Emitter
arg0
- the SynchronizationMode to be tested for support.Emitter.isSynchronizationModeSupported(int)
public java.lang.String getCurrentEcsID()
public void setTempCurrentEcsID(java.lang.String newCurEcsID)
newCurEcsID
- The new ECS ID to be set as the current ECS ID.public java.lang.String getParentEcsID()
public void setTempParentEcsID(java.lang.String newParEcsID)
newParEcsID
- The new ECS ID to be set as the parent ECS ID.public void releaseAndEndECS(java.lang.String ecsID)
ecsID
- The ecsID representing the key of the event correlation sphere that
should be released.public void addUserDataEvent(java.util.Properties properties)
properties
- The properties to be added to the event as extended data elements.public org.eclipse.hyades.logging.events.cbe.CommonBaseEvent createCommonBaseEvent(java.lang.String eventName)
eventName
- an event name to be setEventFactory
public boolean hasNoCorrelationData()