public final class SchedulerStateImpl<T extends JobState> extends Object implements SchedulerState<T>
Constructor and Description |
---|
SchedulerStateImpl()
ProActive Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
SchedulerStateImpl |
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()
To get the finishedJobs
|
Vector<T> |
getPendingJobs()
To get the pendingJobs
|
Vector<T> |
getRunningJobs()
To get the runningJobs
|
SchedulerStatus |
getStatus()
Get the status of the scheduler
|
int |
getTotalNbJobs()
Returns the total number of jobs.
|
SchedulerUsers |
getUsers()
Returns the list of connected users.
|
void |
pendingToFinished(T js) |
void |
pendingToRunning(T js) |
void |
removeFinished(T js) |
void |
runningToFinished(T js) |
void |
setFinishedJobs(Vector<T> finishedJobs)
To set the finishedJobs
|
void |
setPendingJobs(Vector<T> pendingJobs)
To set the pendingJobs
|
void |
setRunningJobs(Vector<T> runningJobs)
To set the runningJobs
|
void |
setState(SchedulerStatus status) |
void |
setUsers(SchedulerUsers users)
Sets the list of connected users to the given users value.
|
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 js)
Updates the scheduler state given the event passed as a parameter
|
public Vector<T> getFinishedJobs()
getFinishedJobs
in interface SchedulerState<T extends JobState>
public void setFinishedJobs(Vector<T> finishedJobs)
finishedJobs
- the finishedJobs to setpublic Vector<T> getPendingJobs()
getPendingJobs
in interface SchedulerState<T extends JobState>
public void setPendingJobs(Vector<T> pendingJobs)
pendingJobs
- the pendingJobs to setpublic Vector<T> getRunningJobs()
getRunningJobs
in interface SchedulerState<T extends JobState>
public void setRunningJobs(Vector<T> runningJobs)
runningJobs
- the runningJobs to setpublic SchedulerStatus getStatus()
SchedulerState
getStatus
in interface SchedulerState<T extends JobState>
public void setState(SchedulerStatus status)
status
- the status to setpublic SchedulerUsers getUsers()
getUsers
in interface SchedulerState<T extends JobState>
public int getTotalNbJobs()
getTotalNbJobs
in interface SchedulerState<T extends JobState>
public void setUsers(SchedulerUsers users)
users
- the list of connected users to set.public SchedulerStateImpl filterOnUser(String name)
filterOnUser
in interface SchedulerState<T extends JobState>
name
- username to be filteredpublic void update(SchedulerEvent eventType)
update
in interface SchedulerState<T extends JobState>
public void update(NotificationData<?> notification)
SchedulerState
update
in interface SchedulerState<T extends JobState>
public void update(T js)
SchedulerState
update
in interface SchedulerState<T extends JobState>
public void pendingToRunning(T js)
public void pendingToFinished(T js)
public void runningToFinished(T js)
public void removeFinished(T js)