I need to design a Naming Service for a distributed system, the system needs to identify an object by an identifier, it's name.
From this name, the name service provides a runtime mechanism for deriving the address (location) of the required object.
The name service will respond to a number of requests:
Register an object - This request takes at least two parameters, the name of the object and the address of that object.
Unregister an Object - This request is the opposite of the previous request with an entry being removed from the servers database.
Map name: This request accepts a name and returns the corresponding address (if the name is present) and any appropriate attributes.
All requests return a result, which includes appropriate errors
I want to code this in Java or C++
Any help will be appreciated