WorkSourcePool
From Web Computing Documentation
class WorkSourcePool implements Operable, implements Persistent
- web2grid
- web2grid.core
- web2grid.core.work
- web2grid.core.work.WorkSourcePool
- web2grid.core.work
- web2grid.core
Class overview
This class handles WorkSources according to the different scheduling, performance rules and user interactions.
Public functions
new ()
addWorkSource (ws : WorkSource)
ws A WorkSource object.
Adds the WorkSource to the pool. According to scheduling rules the pool will use the WorkSource's public functions to manage it.
setTargetActive (num : Int)
num The number of active WorkSources at one time.
This function sets how much WorkSources the WorkSourcePool will keep in an active state at most at one time.
getNumActive () : Int
Returns the number of how much WorkSources the WorkSourcePool will keep in an active state at most at one time.
terminate ()
Terminates all WorkSources within the WorkSourcePool.