Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

package and implementation design

 
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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
 
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
Posts: 17346
11
Mac IntelliJ IDE Spring
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic