public class AdminOrderStatsBatchMgr extends AdminBatchBaseMgr
AdminBatchBaseMgr.CustTagCounterAdminBaseMgr.StaticDatalogadminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir| Constructor and Description |
|---|
AdminOrderStatsBatchMgr(KKAdminIf eng) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<java.lang.Integer> |
getCategoriesForCurrentStore()
Get the categories accessible in the current store
|
protected java.util.List<AdminOrder> |
getLiteOrdersByCustomer(int custId,
int orderStatusId)
Get the lite orders for the specified customer.
|
protected java.util.List<AdminOrder> |
getOrdersByCustomer(int custId,
int[] orderStatusIds,
java.util.Calendar dateAddedTo)
Get the orders for the specified customer.
|
void |
setOrderStatisticsBatch(java.lang.String logName,
java.lang.String appendLogStr,
java.lang.String recordFetchSizeStr,
java.lang.String ageInMonthsStr,
java.lang.String maxTagValueSizeStr)
Calculates a set of order statistics and loads the results in Customer Tags for the
respective customers.
|
ensureCustomerTagIsPresent, getAdEngConf, getAdminJsonEngine, getBatchLogName, getBoolean, getCustomerTagsHash, getInt, getIntArray, getIntArray, getLiteCustomerCriteria, getLiteCustomers, getLogName, getOrders, getSkuForProduct, insertOrUpdateCustomerTag, trimMultiTag, validateTemplateaddInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNowpublic AdminOrderStatsBatchMgr(KKAdminIf eng) throws java.lang.Exception
eng - the engjava.lang.Exception - an unexpected exceptionpublic void setOrderStatisticsBatch(java.lang.String logName,
java.lang.String appendLogStr,
java.lang.String recordFetchSizeStr,
java.lang.String ageInMonthsStr,
java.lang.String maxTagValueSizeStr)
throws java.lang.Exception
logName - The name of the log which shouldn't include the path or extension. i.e. It should
be myLog rather than /logs/myLog.txt.appendLogStr - If set to false, a new log will be created every time the batch job is run.
Otherwise new data will be appended to the existing log. It defaults to false.recordFetchSizeStr - It the batch involves reading many records in a loop, this determines the maximum
number read in any one loop. It defaults to 100.ageInMonthsStr - Only orders last modified in the previous 'ageInMonths' months will be used to
calculate the statistics.maxTagValueSizeStr - Specifies maximum size for tag values.java.lang.Exception - an unexpected exceptionprotected java.util.Set<java.lang.Integer> getCategoriesForCurrentStore()
throws java.lang.Exception
java.lang.Exception - if something unexpected happensprotected java.util.List<AdminOrder> getLiteOrdersByCustomer(int custId, int orderStatusId) throws java.lang.Exception
custId - the customerorderStatusId - Only return orders with this order status idjava.lang.Exception - an unexpected exceptionprotected java.util.List<AdminOrder> getOrdersByCustomer(int custId, int[] orderStatusIds, java.util.Calendar dateAddedTo) throws java.lang.Exception
custId - the customerorderStatusIds - Only return orders with these order status idsdateAddedTo - start of the batch jobjava.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.