@PublicAPI public interface SchedulerState<T extends JobState> extends Serializable
Modifier and Type | Method and Description |
---|---|
SchedulerState |
filterOnUser(String name)
Filter the state on the given user name and return a new instance of scheduler state impl
After this call, this instance remains the same.
|
Vector<T> |
getFinishedJobs()
Get the finished Jobs list
|
Vector<T> |
getPendingJobs()
Get the pending Jobs list
|
Vector<T> |
getRunningJobs()
Get the running Jobs list
|
SchedulerStatus |
getStatus()
Get the status of the scheduler
|
int |
getTotalNbJobs()
Returns the total number of jobs (pending, running and finished)
|
SchedulerUsers |
getUsers()
Returns the list of connected users.
|
void |
update(NotificationData<?> notification)
Updates the scheduler state given the event passed as a parameter
|
void |
update(SchedulerEvent eventType)
Updates the scheduler state given the event passed as a parameter
|
void |
update(T jobState)
Updates the scheduler state given the event passed as a parameter
|
Vector<T> getFinishedJobs()
SchedulerStatus getStatus()
SchedulerUsers getUsers()
int getTotalNbJobs()
void update(SchedulerEvent eventType)
void update(NotificationData<?> notification)
void update(T jobState)
SchedulerState filterOnUser(String name)
name
- username to be filtered