|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.ExecuteMultiStoreBatchEE
public class ExecuteMultiStoreBatchEE
This is a bridge between Quartz Jobs and the KonaKart Batch system which uses the execute interface on the KKAdminIf engine. This will call the batch job once for every store found in the multi-store environment.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
protected static java.lang.String |
PARAM_KEY_PREFIX
parameter key prefix constant |
Constructor Summary | |
---|---|
ExecuteMultiStoreBatchEE()
Constructor |
Method Summary | |
---|---|
protected int |
countParameters(org.quartz.JobDataMap jobData)
Count the parameters which are names param0, param1 etc... |
void |
execute(org.quartz.JobExecutionContext context)
Called by the when a
fires that is associated with the Job . |
protected KKAdminIf |
getAdminEngine(java.lang.String kkAdminEngineClassName,
AdminEngineConfig adEngConf)
|
protected java.lang.String |
getEngConfStr(KKAdminIf adminEng)
|
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 void |
logout(KKAdminIf adminEng,
java.lang.String sessId)
Logout of the Admin Engine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
protected static final java.lang.String PARAM_KEY_PREFIX
Constructor Detail |
---|
public ExecuteMultiStoreBatchEE()
Method Detail |
---|
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
Scheduler
when a
Trigger
fires that is associated with the Job
.
execute
in interface org.quartz.Job
context
- a context for the job in a JobExecutionException
object
org.quartz.JobExecutionException
- if there is an exception while executing the job.protected java.lang.String login(KKAdminIf adminEng, java.lang.String user, java.lang.String password) throws org.quartz.JobExecutionException
adminEng
- an Admin Engineuser
- usernamepassword
- password
org.quartz.JobExecutionException
protected java.lang.String getEngConfStr(KKAdminIf adminEng)
adminEng
-
protected void logout(KKAdminIf adminEng, java.lang.String sessId) throws org.quartz.JobExecutionException
adminEng
- an Admin EnginesessId
- a session Id
org.quartz.JobExecutionException
protected KKAdminIf getAdminEngine(java.lang.String kkAdminEngineClassName, AdminEngineConfig adEngConf) throws org.quartz.JobExecutionException
kkAdminEngineClassName
- adEngConf
-
org.quartz.JobExecutionException
protected int countParameters(org.quartz.JobDataMap jobData)
jobData
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |