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 theIAction
referred 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 void
execute(org.quartz.JobExecutionContext context)
org.pentaho.platform.api.action.IActionInvoker
getActionInvoker()
protected void
invokeAction(String actionClassName, String actionId, String actionUser, org.quartz.JobExecutionContext context, Map<String,Serializable> params)
Invokes theIAction
bean that is created from the providedactionClassName
andactionId
as the providedactionUser
.protected void
invokeAction(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)
} insteadvoid
setActionInvoker(org.pentaho.platform.api.action.IActionInvoker actionInvoker)
-
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
- Specified by:
execute
in 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 theIAction
bean that is created from the providedactionClassName
andactionId
as the providedactionUser
. If theIAction
execution fails as-is, the scheduler attempts to re-create the job that will try to invoke theIAction
again.- Parameters:
actionClassName
- The class name of theIAction
bean; used as a backup, if theactionId
is not available or valdactionId
- The bean id of theIAction
requested to be invoked.actionUser
- The user invoking theIAction
context
- theJobExecutionContext
params
- theMap
or parameters needed to invoke theIAction
- Throws:
Exception
- when theIAction
cannot 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)
-
-