0% found this document useful (0 votes)
52 views

Naming in Computer Systems

This document discusses naming in computer systems and provides examples. It examines how names are used to connect modules together and identifies key aspects of understanding a naming system, including the syntax of names, possible name values, name resolution algorithms, and where the lookup context comes from. Code examples are given that show using naming to look up and invoke a remote bidding interface on an eBay server.

Uploaded by

Steven Swafford
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Naming in Computer Systems

This document discusses naming in computer systems and provides examples. It examines how names are used to connect modules together and identifies key aspects of understanding a naming system, including the syntax of names, possible name values, name resolution algorithms, and where the lookup context comes from. Code examples are given that show using naming to look up and invoke a remote bidding interface on an eBay server.

Uploaded by

Steven Swafford
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

L4: Naming in computer systems

Nickolai Zeldovich 6.033 Spring 2012

Example from last lecture


public interface BidInterface extends Remote { public String bid(String, Integer) throws RemoteException; } public static void main (String[] argv) { try { BidInterface srvr = (BidInterface) Naming.lookup(//xxx.ebay.com/Bid); winning = srvr.bid(123, 10); System.out.println(winning); } catch (Exception e) { System.out.println("BidClient exception: " + e); } }

Example from last lecture


public interface BidInterface extends Remote { public String bid(String, Integer) throws RemoteException; } public static void main (String[] argv) { try { BidInterface srvr = (BidInterface) Naming.lookup(//xxx.ebay.com/Bid); winning = srvr.bid(123, 10); System.out.println(winning); } catch (Exception e) { System.out.println("BidClient exception: " + e); } }

Names

LD R0, 0x2148 18.9.22.69 web.mit.edu /mit/6.033/www/dp1.shtml quiz1.pdf .. (as in, cd .. or ls ..) http://web.mit.edu/6.033/www/dp1.shtml [email protected] ls (617) 253-7149, x3-7149 Frans Kaashoek 021-84-2030

Summary

Names are pervasive in computer systems, used to connect modules together To understand a naming system, think about:

What's the syntax for names? What are the values? What is the name resolution algorithm? Where does the lookup context come from?

You might also like