public class RaiseECEventCmdImpl extends ControllerCommandImpl implements RaiseECEventCmd, java.lang.Runnable
As an optimization, if there are no events that need to be processed by EventProcessor, the "Analytics Event Configuration" component can be disabled in the instance configuration file and the EventProcessor scheduled job will delete events that are in state -10.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | EVENT_THREAD_POOL_NAME
This is the name of the thread pool to handle the events.
|
static boolean | sENHANCE_CONCURRENCY
Used by BusinessAuditStorageBean to turn on enhanced concurrency.
|
Constructor and Description |
---|
RaiseECEventCmdImpl()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long | getBusinessEventId()
This method gets the business event identifier of the event to raise.
|
protected org.eclipse.hyades.logging.events.cbe.CommonBaseEvent | getNextCommonBaseEvent()
This method gets the CommonBaseEvent object for the next event to process or based on the event identifier.
|
protected int | getProcessStateValue()
Returns an integer value that represents the process state of an event.
|
protected int | getPurgeStateValue()
Returns an integer value that represents the purge state of an event.
|
void | performExecute()
This method dispatches the work as an asynchronous activity to ensure the transaction model is the same as the commerce runtime transaction model.
|
protected void | raiseCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method creates an ECEvent with the event data being the common base event.
|
void | run()
This method contains a while loop that processes the common base objects that are specified to be processed.
|
void | setBusinessEventId(java.lang.Long businessEventId)
This method sets the business event identifier to raise.
|
void | setEventGlobalId(java.lang.String eventGlobalId)
This method sets the name of the event to raise.
|
void | setRequestProperties(TypedProperty reqProperties)
This method sets the parameters that are passed to the command.
|
void | setSynchronous(boolean synchronous)
This method indicates whether the command should process events in the current thread of execution or use another thread to process the events asynchronously.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EVENT_THREAD_POOL_NAME
public static volatile boolean sENHANCE_CONCURRENCY
public RaiseECEventCmdImpl()
public java.lang.Long getBusinessEventId()
public void setBusinessEventId(java.lang.Long businessEventId)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void performExecute() throws ECException
public void run()
protected org.eclipse.hyades.logging.events.cbe.CommonBaseEvent getNextCommonBaseEvent() throws java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException, org.eclipse.hyades.logging.events.cbe.FormattingException
protected void raiseCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe) throws ECException
public void setEventGlobalId(java.lang.String eventGlobalId)
public void setSynchronous(boolean synchronous)
protected int getProcessStateValue()
protected int getPurgeStateValue()