org.mobicents.media.server.mgcp.controller.naming
Class NamingTree

java.lang.Object
  extended by org.mobicents.media.server.mgcp.controller.naming.NamingTree

public class NamingTree
extends Object

Naming tree for MGCP endpoints.

Author:
kulikov

Constructor Summary
NamingTree()
           
 
Method Summary
 int find(Text name, MgcpEndpoint[] endpoints)
          Searches endpoints with specified name pattern
 void register(MgcpEndpoint endpoint, EndpointInstaller installer)
          Adds endpoint to this tree.
 void unregister(MgcpEndpoint endpoint)
          Removes endpoint from this tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamingTree

public NamingTree()
Method Detail

register

public void register(MgcpEndpoint endpoint,
                     EndpointInstaller installer)
Adds endpoint to this tree.

Parameters:
endpoint - the endpoint to be added.

unregister

public void unregister(MgcpEndpoint endpoint)
Removes endpoint from this tree.

Parameters:
endpoint - the endpoint to be removed.

find

public int find(Text name,
                MgcpEndpoint[] endpoints)
         throws UnknownEndpointException
Searches endpoints with specified name pattern

Parameters:
name - the name pattern to search
endpoints - the list of matching endpoints
Returns:
number of found endpoints
Throws:
UnknownEndpointException


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.