WorkSourcePool

From Web Computing Documentation
Jump to: navigation, search

class WorkSourcePool implements Operable, implements Persistent

  • web2grid
    • web2grid.core
      • web2grid.core.work
        • web2grid.core.work.WorkSourcePool

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.

Implemented interface functions

operate () from Operable


isChanged () : Bool from Persistent

hxSerialize (s : haxe.Serializer) from Persistent

unSerialize (s : haxe.Unserializer) from Persistent

Personal tools
Modules