|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationSink
The remote interface for all NotificationSink stateless session beans.
A NotificationSink bean is used to receive notifications with various state
information for a specific task that was scheduled using the Scheduler.create
method.
Use the TaskInfo.setNotificationSink
to set the NotificationSink
of a particular task. When the task fires a notification, a TaskNotificationInfo
object
with the current state information will be sent to the registered NotificationSink bean's handleEvent
method.
All NotificationSinks are required to use
this remote interface and the com.ibm.websphere.scheduler.NotificationSinkHome
home interface .
NotificationSinkHome
,
TaskNotificationInfo
,
Scheduler.create(com.ibm.websphere.scheduler.TaskInfo)
,
TaskInfo.setNotificationSink(com.ibm.websphere.scheduler.NotificationSinkHome)
Method Summary | |
---|---|
void |
handleEvent(TaskNotificationInfo task)
Called when a scheduled task is scheduled, cancelled, suspended, resumed, purged and fired. |
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
---|
void handleEvent(TaskNotificationInfo task) throws java.rmi.RemoteException
TaskNotificationInfo
object will contain
the event being fired and TaskStatus
of the respective task.
task
- the TaskNotificationInfo object
java.rmi.RemoteException
TaskNotificationInfo
,
TaskStatus
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |