Module sbetter_server

Server for storing the ask and ask_r values for load balanacing processes with sbetter.

Behaviours: gen_server.

Description

Server for storing the ask and ask_r values for load balanacing processes with sbetter.

Function Index

register/3Register the local process Pid with the server and sets the ask and ask_r values (such as sojourn times) as integer values AskValue and AskRValue.
unregister/1Unregister the process Pid with the server.
update/3Update the ask and ask_r with values (such as sojourn times) as integer values AskValue and AskRValue for Pid.

Function Details

register/3

register(Pid, AskValue, AskRValue) -> Result

Register the local process Pid with the server and sets the ask and ask_r values (such as sojourn times) as integer values AskValue and AskRValue.

Returns true if the process is successfully registered, or false if already registered.

unregister/1

unregister(Pid) -> true

Unregister the process Pid with the server.

The server will synchronously unlink from Pid.

update/3

update(Pid, AskValue, AskRValue) -> Result

Update the ask and ask_r with values (such as sojourn times) as integer values AskValue and AskRValue for Pid.

Returns true if the values were updated, or false if Pid is not registered with the server.


Generated by EDoc, Sep 29 2016, 17:17:28.