I would like to have a Seaside image automatically save&quit, if it is
inactive. Now, how should the inactive state be determined? IIRC, in Seaside-2.8 you could scan the WASession instances and look at a timestamp that each instance held. The WACache stuff in Seaside-3.0 looks very different. Should I scour the WACache usage, to figure out whether the server is inactive (i.e. not handled any requests recently, or alternatively, all sessions have expired)? Or, is there some other simple way to know that the server is inactive. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
>>>>> "Yanni" == Yanni Chiu <[hidden email]> writes:
Yanni> I would like to have a Seaside image automatically save&quit, if it is Yanni> inactive. Now, how should the inactive state be determined? I'd set a timer to trigger the save and quit, and on every request, reset the timer to its full time again. Not sure where to hook it in for each request, but maybe with a bit of poking, you can find it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2010/10/28 Randal L. Schwartz <[hidden email]>:
>>>>>> "Yanni" == Yanni Chiu <[hidden email]> writes: > > Yanni> I would like to have a Seaside image automatically save&quit, if it is > Yanni> inactive. Now, how should the inactive state be determined? > > I'd set a timer to trigger the save and quit, and on every request, > reset the timer to its full time again. Not sure where to hook it in > for each request, but maybe with a bit of poking, you can find it. Wrapping a request filter around the default dispatcher should do the trick. Cheers Philippe _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
On 28/10/10 10:15 AM, Philippe Marschall wrote:
> 2010/10/28 Randal L. Schwartz<[hidden email]>: >>>>>>> "Yanni" == Yanni Chiu<[hidden email]> writes: >> >> Yanni> I would like to have a Seaside image automatically save&quit, if it is >> Yanni> inactive. Now, how should the inactive state be determined? >> >> I'd set a timer to trigger the save and quit, and on every request, >> reset the timer to its full time again. Not sure where to hook it in >> for each request, but maybe with a bit of poking, you can find it. > > Wrapping a request filter around the default dispatcher should do the trick. released under MIT license. Please add to Seaside 3.0 Addons, if it's generally useful. _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside Seaside-InactiveServerDetector-YanniChiu.2.mcz (6K) Download Attachment |
Help!
My application pharo crashed but I haven't closed it yet. Is it possible to save the image with the terminal. Please tell me there is a way to keep my current work... thx alex
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Yanni Chiu
Help!
My application pharo crashed but I haven't closed it yet. Is it possible to save the image with the terminal. Please tell me there is a way to keep my current work... thx alex
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
You can try command + full stop that should bring up the debugger.
If that fails you can force close your image restart it and then from the menu choose Tools -> Recover lost changes. You should be able to recover your work from there. Sent via my BlackBerry from Vodacom - let your email find you! -----Original Message----- From: Alexandre BP <[hidden email]> Sender: [hidden email] Date: Sat, 30 Oct 2010 22:03:18 To: <[hidden email]> Reply-To: Seaside - general discussion <[hidden email]> Subject: [Seaside] save image from teminal _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Alexandre BP
<base href="x-msg://36/">
I'd never ever save an image in a sort of chrashing state. Is far more secure (for your last changes) to choot it (just hard kill the process of that VM) and then start it again and recover changes On Oct 30, 2010, at 8:03 PM, Alexandre BP wrote:
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |