com.ibm.websphere.scheduler
Interface BeanTaskInfo
- All Superinterfaces:
- java.io.Serializable, TaskInfo, TaskStatus
- public interface BeanTaskInfo
- extends TaskInfo
Used to create a scheduled task which executes a TaskHandler bean.
The EJB must use the 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
object, 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.
- Since:
- 5.0
- Version:
- 5.0
- See Also:
TaskInfo
,
Scheduler
,
TaskHandler
,
TaskHandlerHome
Methods inherited from interface com.ibm.websphere.scheduler.TaskInfo |
getAutoPurge, getName, getNotificationSink, getNumberOfRepeats, getRepeatInterval, getStartByInterval, getStartTime, getStartTimeInterval, getUserCalendarJNDIName, getUserCalendarSpecifier, setAutoPurge, setInitialState, setName, setNotificationSink, setNotificationSink, setNumberOfRepeats, setRepeatInterval, setStartByInterval, setStartTime, setStartTimeInterval, setUserCalendar, validate |
setTaskHandler
public void setTaskHandler(TaskHandlerHome home)
throws java.rmi.RemoteException
- Sets the Home of the TaskHandler EJB that will be used to process the scheduled task.
- Parameters:
home
- the Home of the TaskHandler EJB that will be used to process the scheduled task.
- Throws:
RemoteException
- thrown when the Home object is invalid.- Since:
- 5.0
- See Also:
TaskHandler
,
TaskHandlerHome
getTaskHandler
public TaskHandlerHome getTaskHandler()
throws java.rmi.RemoteException
- Retrieves the Home that was set with
setTaskHandler
or with a constructor.
- Returns:
- the Home of the TaskHandler EJB that will be used to process the scheduled task.
- Throws:
RemoteException
- thrown when the Home object is invalid.- Since:
- 5.0