• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Comments on design choice please !!!!!!!!!

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Am requesting you alls opinion on my design choice.
I have a interface called DataIntf which contains all of the public methods of the Data class. I have two classes called LocalManager and RemoteManager which implement this interface. The LocalManager contains an instance of the DataManager class which extends the Data class. The RemoteManager contains an instance of an interface called RemoteDataIntf which extends Remote. I also have a class called RemoteDataImpl which extends UnicastRemoteObject, implements RemoteDataIntf, and the Unreferenced, and has an instance of the DataManager class.
Is this an ok design choice for the assignment?
Please comment.
Than you.
[ April 10, 2002: Message edited by: Rama Ituarte ]
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you defend the existence of LocalManager and RemoteManager? What are they for and why can't you do without them?
- Peter
 
Rama Ituarte
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much for your reply Peter.
What would be another alternative? The classes are there to handle the type of connection that the user wants to have. When I start my server it creates an instance of the RemoteDataImpl class and bind it. Then the RemoteManager looks up the RemoteDataImpl object and gets a reference to one and makes the necessary calls.
Do you think to eliminate the RemoteManager and have the RemoteDataImpl class implement the DataIntf?
Rama
[ April 11, 2002: Message edited by: Rama Ituarte ]
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic