Module delegation_server

Copyright © 2009 Mr Buzz, Inc.

Behaviours: gen_fsm.

Authors: Jacob Perkins.

Function Index

code_change/4
handle_event/3
handle_info/3
handle_sync_event/4
init/1
processing/2
processing/3
queue/2Queue a process for execution on one of the delegate nodes.
queue_len/1
queue_singleton/2Queue a singleton process for execution.
set_delegates/2Set new delegate specs.
singleton/2
singleton/3
start_link/2
terminate/3

Function Details

code_change/4

code_change() -> term()

handle_event/3

handle_event() -> term()

handle_info/3

handle_info() -> term()

handle_sync_event/4

handle_sync_event() -> term()

init/1

init() -> term()

processing/2

processing() -> term()

processing/3

processing() -> term()

queue/2

queue() -> term()

Queue a process for execution on one of the delegate nodes.

queue_len/1

queue_len() -> term()

queue_singleton/2

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/2

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/2

singleton() -> term()

singleton/3

singleton() -> term()

start_link/2

start_link() -> term()

terminate/3

terminate() -> term()


Generated by EDoc, Jul 14 2009, 14:06:01.