public class CleanupRankingPolicyCmdImpl extends AbstractCleanupRankingPolicyCmdImpl implements CleanupRankingPolicyCmd
CleanupRankingPolicyCmdImpl is an implementation of
the CleanupRankingPolicyCmd interface which is used to clean out-of-date
statistic data, and to summarize statistic data for product based ranking, like
top browsed product ranking or best sellers ranking.
The CleanupRankingPolicyCmdImpl command is associated with a ranking
policy. If a ranking uses the ranking policy, when Process MarketingTrigger SendTriggers
is called to publish the ranking lists, then the method cleanup will be called.
This command supports the following five parameters. All the parameters are optional. These parameters can be set in the PROPERTIES column of the business policy command in the POLICYCMD database table.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME
Class name.
|
static java.lang.String |
COPYRIGHT
IBM Copyright field.
|
static java.lang.String |
DEFAULT_BATCH_SIZE
Default prepared statement batch size.
|
static java.lang.String |
DEFAULT_CLEAN_INTERVAL
Default clean interval is one day, that is 86400 second.
|
static java.lang.String |
DEFAULT_CLEAN_MODE
Default clean mode is MODE_LAST_DAY
|
static java.lang.Short |
DEFAULT_OBJECT_TYPE
Default object type is RankingConstants.RANKING_TYPE_MOST_SOLD
|
static java.lang.String |
DEFAULT_PARAM_DMRANKINGSTAT_BATCH_SIZE
Default batch size for DMRANKINGSTAT.
|
static java.lang.String |
DEFAULT_VALID_PERIOD
Default valid period is one month, that is 31 days or 2678400 second.
|
static java.lang.String |
PARAM_BATCH_SIZE
Constant for parameter batch size.
|
static java.lang.String |
PARAM_DMRANKINGSTAT_BATCH_SIZE
Constant for parameter batch size for DMRANKINGSTAT table.
|
CLASSNAMEdefaultCommandClassName, MODE_IMMEDIATE, MODE_LAST_DAY, MODE_LAST_HOUR, NAME, PARAM_CLEAN_INTERVAL, PARAM_CLEAN_MODE, PARAM_VALID_PERIOD| Constructor and Description |
|---|
CleanupRankingPolicyCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Clean up ranking data.
|
getRanking, performExecute, setRankinggetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesaccessControlCheck, 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, validateParametersexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRankinggetPolicyId, getRequestProperties, setPolicyId, setRequestPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public static final java.lang.String DEFAULT_CLEAN_MODE
public static final java.lang.String DEFAULT_CLEAN_INTERVAL
public static final java.lang.String DEFAULT_VALID_PERIOD
public static final java.lang.String DEFAULT_BATCH_SIZE
public static final java.lang.String DEFAULT_PARAM_DMRANKINGSTAT_BATCH_SIZE
public static final java.lang.Short DEFAULT_OBJECT_TYPE
public static final java.lang.String PARAM_BATCH_SIZE
public static final java.lang.String PARAM_DMRANKINGSTAT_BATCH_SIZE
public void cleanup()
throws ECException
cleanup in interface CleanupRankingPolicyCmdcleanup in class AbstractCleanupRankingPolicyCmdImplECException