public class EventProcessorCmdImpl extends ControllerCommandImpl implements EventProcessorCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright
|
static java.lang.String | OUTPUT_NONE
The output format for no output, or silent operation.
|
static java.lang.String | OUTPUT_XML
The output format for an XML result.
|
Constructor and Description |
---|
EventProcessorCmdImpl()
Creates an instance of the event processor.
|
Modifier and Type | Method and Description |
---|---|
protected int | getMaxEventsToPurge()
Returns the maximum number of events to purge when an instance of the EventProcessor scheduled job is run.
|
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()
If Analytics Event Configuration component is enabled, 200 events are fetched and updated from 'process' state (default -10) to 'inProcess' state (default -15).
|
protected void | purgeEvents()
This method is called when Analytics is disabled.
|
static void | purgeEvents(int numEventsToPurge, int processState, int purgeState)
Updates the CHECKED state of the specified number of events in the BUSEVENT table from 'process' to 'purge'.
|
void | setMaxEvents(int max)
Sets the maximum number of analytics events to process in this run.
|
void | setOutput(java.lang.String format)
Sets the output format.
|
void | setRequestProperties(TypedProperty reqParms)
Gets and stores the command variables by extracting the maximum events, store identifier and output format from the specified request properties
|
void | setStoreId(java.lang.Integer storeId)
Sets the ID of the store of which events will be processed
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String OUTPUT_XML
public static final java.lang.String OUTPUT_NONE
public EventProcessorCmdImpl()
public void setMaxEvents(int max)
public void setOutput(java.lang.String format)
public void setStoreId(java.lang.Integer storeId)
public void setRequestProperties(TypedProperty reqParms)
public void performExecute() throws ECException
public static void purgeEvents(int numEventsToPurge, int processState, int purgeState) throws ECApplicationException
protected void purgeEvents() throws ECApplicationException
protected int getMaxEventsToPurge()
protected int getProcessStateValue()
protected int getPurgeStateValue()