Federated Naming Service Programming Guide

XFN Overview

The following gives an overview of the main concepts in XFN and they are used in defining a federated naming system.

XFN References

An XFN name is bound to a reference, which is the information on how to reach an object. It contains a list of addresses, which identify communication endpoints on how to reach the object. Multiple addresses identify multiple communication endpoints for a single conceptual object or service. For example, a list of addresses might be required because the object is distributed or because the object can be accessed through more than one communication mechanism.

XFN Contexts

An XFN context is an object that exports the XFN base context programming interface. A context contains a list of atomic names bound to references, as shown in Figure 1–5. An atomic name can have zero or more attributes. Contexts are at the heart of the lookup and binding operations, described extensively in Chapter 2, Interfaces for Writing XFN Applications.

Figure 1–5 An XFN Context

Diagram shows a XFN context containing atomic names bound to references

XFN Attributes

In addition to references, there can be zero or more attributes associated with each named object, as shown in Figure 1–5. Each attribute has a unique attribute identifier, an attribute syntax, and a set of zero or more distinct attribute values.

XFN defines operations for examining and modifying the values of attributes associated, as well as searching for objects using their associated attributes.

XFN Compound Names

An XFN compound name is a sequence of one or more atomic names. An atomic name in one context object can be bound to a reference to another context object of the same type, called a subcontext. Objects in the subcontext are named using a compound name. Compound names are resolved by looking up each successive atomic name in each successive context.

A familiar analogy for UNIX users is the file naming model, where directories are analogous to contexts, and path names serve as compound names. Furthermore, contexts can be arranged in a “tree” structure, just as directories are, with the compound names forming a hierarchical namespace.

Figure 1–6shows an example of a hierarchical naming system with compound names.

Figure 1–6 Hierarchical Naming System With Compound Names

Diagram shows hierarchical naming system with compound names

XFN Composite Names

An XFN composite name is a name that spans multiple naming systems. It consists of an ordered list of zero or more components. Each component is a name from the namespace of a single naming system. Composite name resolution is the process of resolving a name that spans multiple naming systems. Appendix A, XFN Composite Names, and Appendix B, XFN Composite Names Syntax, supply more detail about composite names.

Components are slash-separated (/) and ordered from left to right, according to XFN composite name syntax. For example, the composite name


sales.Wiz.COM/usr/local/bin

has two components, a DNS name (sales.Wiz.COM) and a UNIX path name (usr/local/bin).

Figure 1–7 shows an example of a federated naming system with composite names. The position of the name within a context has no inherent significance in this illustration.

XFN Links

An XFN link is a special form of reference that is bound to an atomic name in a context. Instead of an address, a link contains a composite name. Many naming systems support a native notion of link that can be used within the naming system itself. XFN does not specify whether there is any relationship between such native links and XFN links.

XFN Links describes links in detail.

Figure 1–7 Federated Naming System With Composite Names

Diagram shows relationship between 2 naming systems, sales.wiz.com and usr/local/bin

XFN Initial Context

Every XFN name is interpreted relative to some context, and every XFN naming operation is performed on a context object. The initial context object provides a starting point for the resolution of composite names. The XFN interface provides a function that allows the client to obtain an initial context.

The policies described inSystem Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) specify a set of names that the client can expect to find in this context and the semantics of their bindings. This provides the initial pathway to other XFN contexts.