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

Field Summary
static org.mobicents.media.server.scheduler.Clock clock
           
 
Constructor Summary
NamingTree()
           
 
Method Summary
 int find(Text name, MgcpEndpoint[] endpoints)
          Searches endpoints with specified name pattern
 void register(MgcpEndpoint endpoint)
          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
 

Field Detail

clock

public static org.mobicents.media.server.scheduler.Clock clock
Constructor Detail

NamingTree

public NamingTree()
Method Detail

register

public void register(MgcpEndpoint endpoint)
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 © 2012 TeleStax, Inc.. All Rights Reserved.