leo_ordning_reda_server¶
The ordning-reda server.
Behaviours: `gen_server <gen_server.html>`__.
References
Description¶
The ordning-reda server
Function Index¶
close/1 | Close a stacked file. |
code_change/3 | Convert process state when code is changed. |
exec/1 | Send stacked objects to remote-node(s). |
handle_call/3 | gen_server callback - Module:handle_call(Request, From, State) -> Result. |
handle_cast/2 | Handling cast message. |
handle_info/2 | Handling all non call/cast messages. |
init/1 | Initiates the server. |
stack/3 | Stack objects. |
start_link/2 | Start the server. |
stop/1 | Stop this server. |
terminate/2 | This function is called by a gen_server when it is about to terminate. |
Function Details¶
code_change/3¶
code_change(OldVsn, State, Extra) -> any()
Convert process state when code is changed
handle_call/3¶
handle_call(X1, From, State) -> any()
gen_server callback - Module:handle_call(Request, From, State) -> Result
handle_cast/2¶
handle_cast(Msg, State) -> any()
Handling cast message
gen_server callback - Module:handle_cast(Request, State) -> Result.
handle_info/2¶
handle_info(Info, State) -> any()
Handling all non call/cast messages
gen_server callback - Module:handle_info(Info, State) -> Result.
stack/3¶
stack(Id, StrawId, ObjBin) -> ok | {error, any()}
- Id = atom()
- StrawId = any()
- ObjBin = binary()
Stack objects
start_link/2¶
start_link(Id, StackInfo) -> ok | {error, any()}
- Id = atom()
- StackInfo = #stack_info{}
Start the server
terminate/2¶
terminate(Reason, State) -> any()
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason.