Naming Service

Posted on 2003-03-25
Medium Priority
Last Modified: 2013-12-27
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


Question by:Matty2003
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 8203086
Have you checked out existing mechanisms like LDAP as opposed to rolling your own (or is this homework)?

Author Comment

ID: 8204138
Yeah i've checked out LDAP but this has to be in Java or C++
LVL 14

Expert Comment

ID: 8204595
What do you mean by "it has to be in Java or C++"? LDAP is a protocol. There are C++ and Java libraries to access it. Or is this a homework assignment?
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 8224329
Yes it's an assignment, which can be programmed in anything but I'd prefer C++ or Java, I don't know anything about LDAP
LVL 14

Expert Comment

ID: 8224467
Note that Expert's Exchange has a policy against asking for help on homework problems.

Expert Comment

ID: 8226568
Sound alot like SNMP, the simple network management protocol in conjunction with a custom mib (mgmt info base) made up of OIDs (object identifier descriptor)s for hostnames.

SNMP is non-stateful, unlike TCP/IP.

Otherwise, sounds like you're duplicating known Naming Services (i.e. NIS, DNS, LDAP, etc...)

my 2 cents
LVL 10

Accepted Solution

elf_bin earned 90 total points
ID: 8243891
Without going into detail (seeing this is a support forum, not a programming forum), split your project into it's component systems and design them individually (standard OO design).
Draw yourself a class diagram, based on the nouns (classes) and verbs (methods).  This'll be the overview for your project.
Once this is done, code it and test.

Best of luck.....

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question