@PublicAPI
public interface SchedulerEventListener
Modifier and Type | Method and Description |
---|---|
void |
jobStateUpdatedEvent(NotificationData<JobInfo> notification)
Invoked each time the state of a job has changed.
If you want to maintain an up to date list of jobs, just use the JobState.update(org.ow2.proactive.scheduler.common.job.JobInfo)
method to update the content of your job. |
void |
jobSubmittedEvent(JobState job)
Invoked each time a new job has been submitted to the Scheduler and validated.
|
void |
jobUpdatedFullDataEvent(JobState job)
Invoked each time the state of a job has changed and each time a scheduler event occurs.
|
void |
schedulerStateUpdatedEvent(SchedulerEvent eventType)
Invoked each time a scheduler event occurs.
Scheduler events are stopped,started, paused, frozen, etc. |
void |
taskStateUpdatedEvent(NotificationData<TaskInfo> notification)
Invoked each time the state of a task has changed.
In this case you can use the JobState.update(org.ow2.proactive.scheduler.common.task.TaskInfo)
method to update the content of the designated task inside your job. |
void |
usersUpdatedEvent(NotificationData<UserIdentification> notification)
Invoked each time something change about users.
|
void schedulerStateUpdatedEvent(SchedulerEvent eventType)
eventType
- the type of the event received.void jobSubmittedEvent(JobState job)
job
- the newly submitted job.void jobStateUpdatedEvent(NotificationData<JobInfo> notification)
JobState.update(org.ow2.proactive.scheduler.common.job.JobInfo)
method to update the content of your job.notification
- the data composed of the type of the event and the information that have change in the job.void jobUpdatedFullDataEvent(JobState job)
job
- the updated job.void taskStateUpdatedEvent(NotificationData<TaskInfo> notification)
JobState.update(org.ow2.proactive.scheduler.common.task.TaskInfo)
method to update the content of the designated task inside your job.notification
- the data composed of the type of the event and the information that have change in the task.void usersUpdatedEvent(NotificationData<UserIdentification> notification)
notification
- the data composed of the type of the event and the data linked to the change.