|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.NamingService
public class NamingService
Implements naming server for media server. The name of the endpoint has heirarhical structure and endpoints are stored in tree structure. The service allows register and unregister endpoints with this service and as well allows to lookup the endpoint using the name of endpoint in two styles: exclusive and non-exclusive The exclusive lookup is used when endpoint name is wildcarded and returned endpoint is not visible for future lookups. The user must explicit share the endpoint after usage to make visible again.
| Constructor Summary | |
|---|---|
NamingService()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamingService()
| Method Detail |
|---|
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 now
UnknownEndpointException - the name of endpoint is unknown.public void share(Endpoint endpoint)
endpoint - the endpoint to share.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||