• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The remote client code that you write must provide all the public methods of the sunc

 
Varaku Venkata
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know the meaning of this statement given in instructions.html
"The remote client code that you write must provide all the public methods of the suncertify.db.Data class. "
Does it mean that all the public methods of Data should be there in client Code.
Or
Does it mean that all the public methods of Data should be there in Remote Code.

I am confused as I have kept all the public methods of Data in RemoteDataImplementation
and not anywhere.
Pls Help
Venkat
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What that means is that the interface that you build that will be implemented for local and remote modes, will need to have all the public methods of the Data class.
Even if you have a DataWrapper, the class that it makes calls to is the implementation classes above. And that meets the requirements.
Mark
 
Varaku Venkata
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Thanks for the reply.
In my DataInterface i have all public methods of Data and in RemoteDataInterface i have implemented these methods of Data by calling Data Methods inside RemoteDataInterface methods.
Is this sufficient ?
and when i am going through instructions.html I found one more sentence which is confusing to me ?
"To connect with your server, you should create a client program. This implementation should include a class that implements the same public methods as the suncertify.db.Data class, although it will need different constructors to allow it to support the network configuration. "
What does he mean ?
Thanks in Advance

Varaku
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you have is sufficient. the Interface will be implemented by two classes. One for remote and one for local. That is all that they mean, and this is all you need to meet those requirements.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic