[erlang-questions] Generic server and state recovery

Vance Shipley vances@REDACTED
Wed Dec 8 00:20:09 CET 2010


This function will retrieve the status for you:

	sys:get_status/1

	http://erlang.org/doc/man/sys.html#get_status-1

If you implement a format_status/2 callback in your gen_server
you can have it pretty print the status data or otherwise dress
it up.

	gen_server:format_status/2

	http://erlang.org/doc/man/gen_server.html#format_status-2

On Tue, Dec 07, 2010 at 11:58:29PM +0100, Alessandro Sivieri wrote:
}  I was wondering if there is any "standard" way to recover the state of a
}  generic server, or if anyone has ever implemented some recovery method...

-- 
	-Vance


More information about the erlang-questions mailing list