public class KKBatchBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
PARAM_KEY_PREFIX
parameter key prefix constant
|
Constructor and Description |
---|
KKBatchBase() |
Modifier and Type | Method and Description |
---|---|
protected int |
countParameters(org.quartz.JobDataMap jobData)
Count the parameters which are names param0, param1 etc...
|
protected KKAdminIf |
getAdminEngine(java.lang.String kkAdminEngineClassName,
AdminEngineConfig adEngConf)
Get an Admin Engine for execution of the KonaKart Batch Jobs from Quartz
|
protected static KKAdminIf |
getAdminEngineDirect(java.lang.String kkAdminEngineClassName,
AdminEngineConfig adEngConf)
Get an Admin Engine for Direct execution of the KonaKart Batch Jobs
|
protected java.lang.String |
getEngConfStr(KKAdminIf adminEng) |
protected static java.lang.String |
getEngConfStrDirect(KKAdminIf adminEng) |
protected static java.lang.String |
getStoreId(KKAdminIf adminEng)
Get the storeId
|
protected java.lang.String |
login(KKAdminIf adminEng,
java.lang.String user,
java.lang.String password)
Log in to the Admin Engine and return a session Id
|
protected static java.lang.String |
loginDirect(KKAdminIf adminEng,
java.lang.String user,
java.lang.String password)
Log in to the Admin Engine and return a session Id
|
protected static void |
logout(KKAdminIf adminEng,
java.lang.String sessId)
Logout of the Admin Engine
|
protected static org.apache.commons.logging.Log log
protected static final java.lang.String PARAM_KEY_PREFIX
protected int countParameters(org.quartz.JobDataMap jobData)
jobData
- the jobDataprotected static void logout(KKAdminIf adminEng, java.lang.String sessId)
adminEng
- an Admin EnginesessId
- a session Idprotected java.lang.String login(KKAdminIf adminEng, java.lang.String user, java.lang.String password) throws org.quartz.JobExecutionException
adminEng
- an Admin Engineuser
- usernamepassword
- passwordorg.quartz.JobExecutionException
- an unexpected JobExecutionException exceptionprotected static java.lang.String loginDirect(KKAdminIf adminEng, java.lang.String user, java.lang.String password) throws java.lang.Exception
adminEng
- an Admin Engineuser
- usernamepassword
- passwordjava.lang.Exception
- an unexpected exceptionorg.quartz.JobExecutionException
- an unexpected JobExecutionException exceptionprotected KKAdminIf getAdminEngine(java.lang.String kkAdminEngineClassName, AdminEngineConfig adEngConf) throws org.quartz.JobExecutionException
kkAdminEngineClassName
- the kkAdminEngineClassNameadEngConf
- the adEngConforg.quartz.JobExecutionException
- if there's a problem creating the KKAdminIf engineprotected static KKAdminIf getAdminEngineDirect(java.lang.String kkAdminEngineClassName, AdminEngineConfig adEngConf) throws java.lang.Exception
kkAdminEngineClassName
- the kkAdminEngineClassNameadEngConf
- the adEngConfjava.lang.Exception
- an unexpected exception if there's a problem creating the KKAdminIf engineprotected java.lang.String getEngConfStr(KKAdminIf adminEng)
protected static java.lang.String getEngConfStrDirect(KKAdminIf adminEng)
protected static java.lang.String getStoreId(KKAdminIf adminEng)
adminEng
- the adminEngCopyright © 2018 DS Data Systems UK Ltd.