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.
|
defaultCommandClassName, EVENT_GLOBAL_ID_PARAM_NAME, EVENT_ID_PARAM_NAME, NAME
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.
|
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.
|
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.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
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()
getBusinessEventId
in interface RaiseECEventCmd
public void setBusinessEventId(java.lang.Long businessEventId)
setBusinessEventId
in interface RaiseECEventCmd
businessEventId
- This is the business event identifier to raise.public void setRequestProperties(TypedProperty reqProperties) throws ECException
eventId
from the request properties and
set the command with the value found.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProperties
- This is the request parameters specified.ECException
- This is never thrown.ControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
TargetableCommand.performExecute()
public void run()
ECEvent
s to represent the event internally
so the internal event listeners can react to the events. All exceptions will be caught and logged.
This command will always execute successfully and log problems.run
in interface java.lang.Runnable
public void setEventGlobalId(java.lang.String eventGlobalId)
setEventGlobalId
in interface RaiseECEventCmd
eventGlobalId
- This is the name of the event to raise. When this parameter is set,
the event key should also be specified.public void setSynchronous(boolean synchronous)
setSynchronous
in interface RaiseECEventCmd
synchronous
- This indicates whether the command should execute synchronously (true) or asynchronously (false).