Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.3.0)

E80355-01

NameService Class Reference

#include <coherence/net/NameService.hpp>

Inherits Service.

List of all members.


Detailed Description

A NameService is a clustered service that accepts connections from external clients (e.g.

Coherence*Extend) and provides a name lookup service.

Author:
Wei Lin 2012.06.18
Since:
Coherence 12.1.2

Public Types

typedef spec::Handle Handle
 NameService Handle definition.
typedef spec::View View
 NameService View definition.
typedef spec::Holder Holder
 NameService Holder definition.

Public Member Functions

virtual void bind (String::View vsName, Object::View o)=0
 Binds a name to an object.
virtual Object::View lookup (String::View vsName)=0
 Retrieves the named object.
virtual void unbind (String::View vsName)=0
 Unbinds the named object.

Member Function Documentation

virtual void bind ( String::View  vsName,
Object::View  o 
) [pure virtual]

Binds a name to an object.

Parameters:
vsName the name to bind; may not be empty
o the object to bind; possibly null

virtual Object::View lookup ( String::View  vsName  )  [pure virtual]

Retrieves the named object.

Parameters:
vsName the name of the object to look up
Returns:
the object bound to sName
Exceptions:
NamingException if a naming exception is encountered

virtual void unbind ( String::View  vsName  )  [pure virtual]

Unbinds the named object.

Parameters:
vsName the name to bind; may not be empty


The documentation for this class was generated from the following file:
Copyright © 2000, 2017, Oracle and/or its affiliates. All rights reserved.