public interface BeanTaskInfo extends TaskInfo
TaskHandlerHome
home interface and TaskHandler
remote interface. The task is created using the Scheduler.create
methods.
When the scheduler fires the scheduled task that was created
with this BeanTaskInfo
, the EJB is created using the home and the
process
method is executed.
To control how this task is executed once it is created within a Scheduler, use the set
methods on the TaskInfo interface.
TaskInfo
,
Scheduler
,
TaskHandler
,
TaskHandlerHome
EXECUTION_DELAYEDUPDATE, QOS_ATLEASTONCE, QOS_ONLYONCE
CANCELLED, COMPLETE, INVALID, RUNNING, SCHEDULED, serialVersionUID, SUSPENDED
Modifier and Type | Method and Description |
---|---|
TaskHandlerHome |
getTaskHandler()
Retrieves the Home that was set with
setTaskHandler or with a constructor. |
java.lang.String |
getTaskHandlerJNDIName()
Gets the JNDI name of a TaskHandler EJB Home that was set using the setTaskHandler(String taskHandlerHomeJNDIName) method.
|
void |
setTaskHandler(java.lang.String taskHandlerHomeJNDIName)
Sets the JNDI name of a TaskHandler EJB Home that will be used to process the scheduled task.
|
void |
setTaskHandler(TaskHandlerHome home)
Sets the Home of the TaskHandler EJB that will be used to process the scheduled task.
|
getAuthenticationAlias, getAutoPurge, getExpectedDuration, getName, getNotificationSink, getNotificationSinkJNDIName, getNumberOfRepeats, getQOS, getRepeatInterval, getStartByInterval, getStartTime, getStartTimeInterval, getTaskExecutionOptions, getUserCalendarJNDIName, getUserCalendarSpecifier, setAuthenticationAlias, setAutoPurge, setExpectedDuration, setInitialState, setName, setNotificationSink, setNotificationSink, setNotificationSink, setNotificationSink, setNumberOfRepeats, setQOS, setRepeatInterval, setStartByInterval, setStartTime, setStartTimeInterval, setTaskExecutionOptions, setUserCalendar, validate
getNextFireTime, getRepeatsLeft, getStatus, getTaskId, getTimeCreated
void setTaskHandler(TaskHandlerHome home) throws java.rmi.RemoteException
home
- the Home of the TaskHandler EJB that will be used to process the scheduled task.RemoteException
- thrown when the Home object is invalid.TaskHandler
,
TaskHandlerHome
void setTaskHandler(java.lang.String taskHandlerHomeJNDIName)
taskHandlerHomeJNDIName
- the fully-qualified JNDI name of the TaskHandler EJB that will be used to process the scheduled task.TaskHandler
,
TaskHandlerHome
TaskHandlerHome getTaskHandler() throws java.rmi.RemoteException
setTaskHandler
or with a constructor.RemoteException
- thrown when the Home object is invalid.java.lang.String getTaskHandlerJNDIName()
TaskHandler
,
TaskHandlerHome