Copyright © 2009 Mr Buzz, Inc.
Behaviours: gen_fsm.
Authors: Jacob Perkins.
| code_change/4 | |
| handle_event/3 | |
| handle_info/3 | |
| handle_sync_event/4 | |
| init/1 | |
| processing/2 | |
| processing/3 | |
| queue/2 | Queue a process for execution on one of the delegate nodes. |
| queue_len/1 | |
| queue_singleton/2 | Queue a singleton process for execution. |
| set_delegates/2 | Set new delegate specs. |
| singleton/2 | |
| singleton/3 | |
| start_link/2 | |
| terminate/3 |
code_change() -> term()
handle_event() -> term()
handle_info() -> term()
handle_sync_event() -> term()
init() -> term()
processing() -> term()
processing() -> term()
queue() -> term()
Queue a process for execution on one of the delegate nodes.
queue_len() -> term()
queue_singleton() -> term()
Queue a singleton process for execution. When all other processes queue before the singleton are complete, then the singleton process will execute on a delegate node, while the rest of the delegates wait. No other processes will execute until the singleton process completes.
set_delegates(Ref, Delegates::[{node(), integer()}]) -> ok
Set new delegate specs. Delegates is a list of {Node, Max} where Max is the maximum number of process that can execute in parallel on the delegate node.
singleton() -> term()
singleton() -> term()
start_link() -> term()
terminate() -> term()
Generated by EDoc, Jul 14 2009, 14:06:01.