org.mobicents.media.server.mgcp.controller.naming
Class EndpointQueue
java.lang.Object
org.mobicents.media.server.mgcp.controller.naming.EndpointQueue
- All Implemented Interfaces:
- MgcpEndpointStateListener
public class EndpointQueue
- extends Object
- implements MgcpEndpointStateListener
Storage for endpoints of same type with search and reordering functions.
- Author:
- yulian oifa
|
Field Summary |
org.apache.log4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public org.apache.log4j.Logger logger
EndpointQueue
public EndpointQueue()
setInstaller
public void setInstaller(EndpointInstaller installer)
add
public void add(MgcpEndpoint endpoint)
- Adds new endpoint to the queue.
- Parameters:
endpoint - the endpoint to be added
find
public int find(Text name,
MgcpEndpoint[] endpoints)
- Finds endpoints matching to name pattern.
If "any" endpoint was requested, then first matching endpoint will be locked
and not available for search in future until this endpoint will be explicitly unlocked.
- Parameters:
name - the name pattern for searchendpoints - collection which will be filled by found endpoints
- Returns:
- the number of found endpoints.
onFreed
public void onFreed(MgcpEndpoint endpoint)
- Specified by:
onFreed in interface MgcpEndpointStateListener
Copyright © 2013 TeleStax, Inc.. All Rights Reserved.