Why do you need a LocalDataImpl? Why not just use Data?
If you use Data, and your locking is implemented in that class, then the locking will happen in local mode. That's what we are trying to avoid.
except that the methods of Data will have to be defined in two places, actually four places, if you count the inteface: data interface, Data, LocalDataImpl, RemoteDataImpl.
But your locking should NOT be implemented in Data, IMHO.
Originally posted by Eugene Kononov:
Again, I like that idea, except that the methods of Data will have to be defined in two places, actually four places, if you count the inteface: data interface, Data, LocalDataImpl, RemoteDataImpl.
Eugene.
SCEA, SCBCD, SCWCD, SCJD, SCJP
SCEA, SCBCD, SCWCD, SCJD, SCJP
Originally posted by ravindra janapareddy:
I have implemented lock & unlock methods in LockManager class. It this approach wrong as per the assigment specifications?