public abstract class BaseEndpointImpl extends Object implements Endpoint
| Modifier and Type | Field and Description |
|---|---|
protected MediaGroup |
mediaGroup |
protected ResourcesPool |
resourcesPool |
| Constructor and Description |
|---|
BaseEndpointImpl(String localName) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection(ConnectionType type,
Boolean isLocal) |
void |
deleteAllConnections() |
void |
deleteConnection(Connection connection) |
void |
deleteConnection(Connection connection,
ConnectionType connectionType) |
int |
getActiveConnectionsCount() |
Connection |
getConnection(int connectionID) |
String |
getLocalName() |
Component |
getResource(MediaType mediaType,
ComponentType componentType) |
ResourcesPool |
getResourcesPool()
Provides access to the resources pool.
|
org.restcomm.media.scheduler.PriorityQueueScheduler |
getScheduler() |
EndpointState |
getState() |
boolean |
hasResource(MediaType mediaType,
ComponentType componentType) |
void |
releaseResource(MediaType mediaType,
ComponentType componentType) |
void |
setResourcesPool(ResourcesPool resourcesPool)
Assigns resources pool.
|
void |
setScheduler(org.restcomm.media.scheduler.PriorityQueueScheduler scheduler) |
void |
setState(EndpointState state)
Modifies state indicator.
|
void |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, modeUpdatedprotected ResourcesPool resourcesPool
protected MediaGroup mediaGroup
public BaseEndpointImpl(String localName)
public String getLocalName()
getLocalName in interface Endpointpublic void setScheduler(org.restcomm.media.scheduler.PriorityQueueScheduler scheduler)
setScheduler in interface Endpointpublic org.restcomm.media.scheduler.PriorityQueueScheduler getScheduler()
getScheduler in interface Endpointpublic void setResourcesPool(ResourcesPool resourcesPool)
resourcesPool - the resources pool instance.public ResourcesPool getResourcesPool()
public EndpointState getState()
public void setState(EndpointState state)
state - the new value of the state indicator.public void start()
throws ResourceUnavailableException
start in interface EndpointResourceUnavailableExceptionpublic Connection createConnection(ConnectionType type, Boolean isLocal) throws ResourceUnavailableException
createConnection in interface EndpointResourceUnavailableExceptionpublic void deleteConnection(Connection connection)
deleteConnection in interface Endpointpublic void deleteConnection(Connection connection, ConnectionType connectionType)
deleteConnection in interface Endpointpublic void deleteAllConnections()
deleteAllConnections in interface Endpointpublic Connection getConnection(int connectionID)
public int getActiveConnectionsCount()
getActiveConnectionsCount in interface Endpointpublic Component getResource(MediaType mediaType, ComponentType componentType)
getResource in interface Endpointpublic boolean hasResource(MediaType mediaType, ComponentType componentType)
hasResource in interface Endpointpublic void releaseResource(MediaType mediaType, ComponentType componentType)
releaseResource in interface EndpointCopyright © 2017 TeleStax, Inc.. All Rights Reserved.