public class NamingService extends Object
| Constructor and Description |
|---|
NamingService() |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
lookup(String name,
boolean exclusive)
Gets the endpoint with specified name.
|
void |
register(Endpoint endpoint)
Registers endpoint.
|
void |
share(Endpoint endpoint)
Makes endpoint visible for lookups if it was looked up exclusively before
|
void |
unregister(Endpoint endpoint)
Unregisters endpoint.
|
public void register(Endpoint endpoint)
endpoint - the endpoint to be registered.public void unregister(Endpoint endpoint)
endpoint - the endpoint to be unregistered.public Endpoint lookup(String name, boolean exclusive) throws ResourceUnavailableException, UnknownEndpointException
name - the name of the endpoint to lookupexclusive - the mode of search. if true the returned endpoint won't
be visible for future lookups unit it will be explicitly shared. *ResourceUnavailableException - if name is wildcarded and no free endpoints nowUnknownEndpointException - the name of endpoint is unknown.public void share(Endpoint endpoint)
endpoint - the endpoint to share.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.