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

NX: RMI is too easy paranoia has set in ...

 
Morgan Bath
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spend a few weeks of thought and desing and a good week of programming on the data object and locking and was preparing for equally long slog on the networking stage. I sat down after lunch and finished it in one afternoo (no documentation as of yet). And it seems to work. I didnt implement the Undefined() interface, but then i dont have anything that deals with stale locks either.
Obviously im now panicing that I totally missed something. Im hoping your all going to reply "Nah, it was easy I finished it sat on the toilet!" and other such reassuring words.
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Relax. ;D
The following is from my own design discussion thread on networking (scored 40 of 40 on Server):

Choosing RMI seemed to be a total no-brainer as it is so simple compared to using sockets. My entire networking code compiles to only 5,408 bytes of code. It consists of 2 classes...
 
Morgan Bath
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed 4 classes. One interface (one line long), one implementation class, one ConnectionManager class to help blur the difference between local and network, and a class that just automates the server. The last two classes I just added to make it all a little more friendly. They do very little.
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed only 2 classes (1 interface and 1 implementation class) because I cheated and implemented the connection management as 2 static finder methods in the implementation class, 1 for getting a server and 1 for getting a stub. If the assignment required more complex networking, I would probably pull the connection management out into a separate class first thing.
[ January 31, 2004: Message edited by: Ken Krebs ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic