Perttu Auramo

Greenhorn
+ Follow
since Sep 16, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Perttu Auramo

Originally posted by Devu Shah:
Thanks for reply.
One more question if u dont mind.
Was your Criteriafind method Syncronised or not ?



No. I don't really see why it should be anyway?

Originally posted by Devu Shah:
Hi. Cogrates. and thanks for details given.
Can u pl. show break up of marks. specillay in GUI ?
thanks
devu


I'm not sure what you mean. If it's details about the score then here (the major point loss stuff is still there although I got the score corrected, it was a mistake on their part):
Grade: P
Score: 145
Comment: This report shows the total points that could have been awarded in each section and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible # of points is 155; the minimum to pass is 124. General Considerations(maximum = 58): 56 Documentation(maximum = 20): 20 GUI(maximum = 24): 18 Server(maximum = 53): 51 ************* Major point loss for record locking code. The lock() method does not block when trying to lock a locked record.

Originally posted by Siddharth Mehrotra:
hi Pauramo,
Great news to hear that you have cleared the SCJD exam.
why dont you carry out the tradition and help meek coders like us by giving advice , as to what were your design patterns and what part of the code yo were really bugged. how did you get over it ...
my questions will go on and on and on.....
in short what all you expected others to tell you why dont you tell it to us


Well, first of all I used RMI. The network server (RMI-class) and Data-class extended the same interface (DataInterface) although the RMI-one through inheritance (DataInterface -> DataNetworkInterface). The DataNetworkInterface also inherited Remote.
The locking was implemented with simple List of Lock-objects (containing information if a certain record is locked or not). The change of the state of these objects was synchronized with the lock-object (very granular). I didn't use client-tracking and timeouts. The lock-all stuff i did like this: I had one special java.lang.Object which was used to synchronize the lock-all portion of the code. This lock-all portion just looped through all the records and did the exactly same thing as the lock-one portion.
The search was very simple: at first it constructed a list of objects which contained the search-conditions in a way which was easier to use when looping through the whole database. Then just the looping.
The documentation I did with html (the user-instructions and explanation of the design choices) plus the readme.txt.
I had the whole application in one jar (both the client and the server). This jar was of course in a bigger jar which contained all the docs and so on.
Well, does anybody want to know more? I won't post the whole code or anything though...
(pauramo -> Perttu Auramo)