WorkSourcePool

From Web Computing Documentation
(Difference between revisions)
Jump to: navigation, search
(Public functions)
(Public functions)
 
Line 47: Line 47:
   
 
Terminates all [[WorkSource|WorkSources]] within the [[WorkSourcePool]].
 
Terminates all [[WorkSource|WorkSources]] within the [[WorkSourcePool]].
  +
  +
==Implemented interface functions==
  +
<div class="class_function_definition">
  +
'''operate''' () from [[Operable]]
  +
</div>
  +
----
  +
<div class="class_function_definition">
  +
'''isChanged''' () : Bool from [[Persistent]]
  +
</div>
  +
  +
<div class="class_function_definition">
  +
'''hxSerialize''' (s : haxe.Serializer) from [[Persistent]]
  +
</div>
  +
  +
<div class="class_function_definition">
  +
'''unSerialize''' (s : haxe.Unserializer) from [[Persistent]]
  +
</div>

Latest revision as of 18:55, 15 August 2011

class WorkSourcePool implements Operable, implements Persistent

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

[edit] Class overview

This class handles WorkSources according to the different scheduling, performance rules and user interactions.

[edit] 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.

[edit] 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