Class ActionAdapterQuartzJob
- java.lang.Object
-
- org.pentaho.platform.scheduler2.quartz.ActionAdapterQuartzJob
-
- All Implemented Interfaces:
org.quartz.Job
public class ActionAdapterQuartzJob extends Object implements org.quartz.Job
A Quartz job that is responsible for executing theIActionreferred to in the job context.- Author:
- aphillips
-
-
Constructor Summary
Constructors Constructor Description ActionAdapterQuartzJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidexecute(org.quartz.JobExecutionContext context)org.pentaho.platform.api.action.IActionInvokergetActionInvoker()protected voidinvokeAction(String actionClassName, String actionId, String actionUser, org.quartz.JobExecutionContext context, Map<String,Serializable> params)Invokes theIActionbean that is created from the providedactionClassNameandactionIdas the providedactionUser.protected voidinvokeAction(org.pentaho.platform.api.action.IAction actionBean, String actionUser, org.quartz.JobExecutionContext context, Map<String,Serializable> params)Deprecated.as of 8.0, useinvokeAction(String, String, String, JobExecutionContext, Map)} insteadvoidsetActionInvoker(org.pentaho.platform.api.action.IActionInvoker actionInvoker)
-
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException- Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-
invokeAction
@Deprecated protected void invokeAction(org.pentaho.platform.api.action.IAction actionBean, String actionUser, org.quartz.JobExecutionContext context, Map<String,Serializable> params) throws Exception
Deprecated.as of 8.0, useinvokeAction(String, String, String, JobExecutionContext, Map)} instead- Throws:
Exception
-
invokeAction
protected void invokeAction(String actionClassName, String actionId, String actionUser, org.quartz.JobExecutionContext context, Map<String,Serializable> params) throws Exception
Invokes theIActionbean that is created from the providedactionClassNameandactionIdas the providedactionUser. If theIActionexecution fails as-is, the scheduler attempts to re-create the job that will try to invoke theIActionagain.- Parameters:
actionClassName- The class name of theIActionbean; used as a backup, if theactionIdis not available or valdactionId- The bean id of theIActionrequested to be invoked.actionUser- The user invoking theIActioncontext- theJobExecutionContextparams- theMapor parameters needed to invoke theIAction- Throws:
Exception- when theIActioncannot be invoked for some reason.
-
getActionInvoker
public org.pentaho.platform.api.action.IActionInvoker getActionInvoker()
-
setActionInvoker
public void setActionInvoker(org.pentaho.platform.api.action.IActionInvoker actionInvoker)
-
-