public class CleanupRankingPolicyCmdImpl extends AbstractCleanupRankingPolicyCmdImpl implements CleanupRankingPolicyCmd
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.
|
Constructor and Description |
---|
CleanupRankingPolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | cleanup()
Clean up ranking data.
|
protected java.lang.String | getDefaultParamValue(java.lang.String paramName)
This method gets the default value for the specified parameter name.
|
protected void | initialize()
Initialization.
|
protected void | summarizeStatisticData(java.lang.Integer storeId, java.lang.String objectType, java.lang.Long groupId, long expiryTime, long latestIntervalEndTime, long cleanupInterval)
Summarize statistic data by interval.
|
public 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
protected java.lang.String getDefaultParamValue(java.lang.String paramName)
protected void initialize() throws ECException
protected void summarizeStatisticData(java.lang.Integer storeId, java.lang.String objectType, java.lang.Long groupId, long expiryTime, long latestIntervalEndTime, long cleanupInterval) throws java.lang.Exception