public class UniversalSchedulerListener extends Object implements SchedulerEventListener, Serializable
Constructor and Description |
---|
UniversalSchedulerListener() |
UniversalSchedulerListener(SchedulerEventListener internalListener)
Create a wrapper for user defined listener.
|
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.
|
public UniversalSchedulerListener(SchedulerEventListener internalListener)
internalListener
- the wrapped listener.public UniversalSchedulerListener()
public void jobStateUpdatedEvent(NotificationData<JobInfo> notification)
SchedulerEventListener
JobState.update(org.ow2.proactive.scheduler.common.job.JobInfo)
method to update the content of your job.jobStateUpdatedEvent
in interface SchedulerEventListener
notification
- the data composed of the type of the event and the information that have change in the job.public void jobUpdatedFullDataEvent(JobState job)
SchedulerEventListener
jobUpdatedFullDataEvent
in interface SchedulerEventListener
job
- the updated job.public void jobSubmittedEvent(JobState job)
SchedulerEventListener
jobSubmittedEvent
in interface SchedulerEventListener
job
- the newly submitted job.public void schedulerStateUpdatedEvent(SchedulerEvent eventType)
SchedulerEventListener
schedulerStateUpdatedEvent
in interface SchedulerEventListener
eventType
- the type of the event received.public void taskStateUpdatedEvent(NotificationData<TaskInfo> notification)
SchedulerEventListener
JobState.update(org.ow2.proactive.scheduler.common.task.TaskInfo)
method to update the content of the designated task inside your job.taskStateUpdatedEvent
in interface SchedulerEventListener
notification
- the data composed of the type of the event and the information that have change in the task.public void usersUpdatedEvent(NotificationData<UserIdentification> notification)
SchedulerEventListener
usersUpdatedEvent
in interface SchedulerEventListener
notification
- the data composed of the type of the event and the data linked to the change.