Revision 1 as of 2014-01-08 14:30:51

Clear message

The Name Service

The Name Service allows users to associate a string with a piece of arbitrary data (often a HandleT).

All SAFplus API calls that accept a string name use the Name Service to resolve the string into the actual HandleT or object. Since components and services accept a strings in their "create" APIs, it is possible that the end user will never explicitly use the Name Service yet it be heavily utilized.

===Implementation===

The Name Service is a client library that is linked with every component that uses it. It opens a cluster-wide, shared memory, non-persistent checkpoint using the name service's well-known HandleT.

The name service uses this checkpoint to resolve string names into objects.

===APIs===

#include <clNameApi.hpp>

* nameInitialize()

* nameSet(char* name, HandleT handle); * nameSet(char* name, void* data, int length);

* HandleT nameGet(char* name) * int nameGet(char* name, void* data, int maxLength)