Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implement or not implement the check of the client's crash

 
Olena Golub
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you think is it necessary to implement the check for the client's crash?
If not what did you write in your choises.txt?
Thanks a lot for your help!
 
Liang Anmian
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will say optional, because it is not a requirement. I think there are people who pass very well without handling lost clients. If I'm not wrong, you do not need to explain much. Just say it's not a requirement, or it's beyond the scope of this assignment. Please correct me if I'm wrong.

If you use RMI, implement the Unreferenced interface and get the unreferenced method to perform cleanup. Merely 5 minutes of work!

If you use sockets, just catch an exception when you wait for your client to send you requests. I forgot what's the exception (think it's IOException or something). Then cleanup in the catch block.

It does not seem difficult to do it, so I do it despite the fact that it is not a requirement.
[ April 24, 2005: Message edited by: Liang Anmian ]
 
Olena Golub
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okey, I implemented this with Unreferenced and it works perfect.
But the problem is that the method unreferenced() will be called only in
15 minutes after the client crashes. Can I change this time in code? Or can I leave it?
To change it in Comand line I think it's not a good idea.

Any ideas?
Thanks a lot!
Olena
 
Liang Anmian
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the scope of this assignment, just leave it. Of course, you can change it during testing. I always change the lease time to 10 seconds so that I don't have to wait.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic