Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package and implementation design

 
badari gururaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
This is an abstract of my inteneded package and implementation designs for FBN assignment.
package suncertify.inter:
DataInterface- an interface declaring all the public methods provided in suncertify.db.Data class
package suncertify.client:
All files related to UI(delegates, model, compnentfactory etc)
DataClient- implementing suncertify.inter.DataInterface
package suncertify.db:
All files provied by Sun
LockManager
SingletonData
package suncertify.server:
RemoteAccess - interface extending Remote and declares a method returning DataServer
RemoteAccessImpl - implements RemoteAccess
RemoteDataAccess - implements suncertify.inter.DataInterface and Remote
DataServer - implements RemoteDataAccess
RemoteAccessServer - Class binds RemoteAccessImpl with the registry

Implementation Design:
DataClient takes the mode as int in its constructor, assigns the DataInterface object with the apporiate Data(local mode) or DataServer(Remote mode) object.
LockManger extends data and takes care of lock and unlock.
SingletonData returns a single instnce of Data and is used by DataServer
RemoteAccessServer binds RemoteAccessImpl to the registry, the method returns an instance of
DataServer
DataServer uses Data class to access the db.db file along with the instances of LockManger and
SingletonData
Comments please.

cheers
badari

 
badari gururaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just a modification
no more package suncertify.inter
DataInterface goes into suncertify.db
DataClient implements suncertify.db.DataInterface
cheers
badari
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you implemented this design yet?
You know it is always tough to decide if someone's design is different, if it is correct, good, etc. I like the thought that you have put into it, and it could work, but it is different than what I did, so I wnat my comments to be geared towards your design, rather than try to make you use the exact same design as mine.
I would like to see your design implemented, and tell us how it works. I think you might be able to seperate some more classes out of your design for decoupling classes. But that will appear to you later as you work on your implementation.
Let us know how it works.
Mark
 
Dasong
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
I heard I don't have to download Server_Stub from server side when run client side Application. That means I have to put package suncertify.server.* at client side right?
Dasong
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic