public class Controller extends Object implements MgcpListener, ServerManager
| Modifier and Type | Field and Description |
|---|---|
protected int |
poolSize |
protected int |
port |
protected GlobalTransactionManager |
txManager |
| Constructor and Description |
|---|
Controller() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addInstaller(EndpointInstaller installer)
Installs endpoints defined by specified installer.
|
void |
createGlobalTransactionManager() |
void |
createProvider() |
void |
deactivate() |
ControlProtocol |
getControlProtocol() |
void |
install(Endpoint endpoint,
EndpointInstaller installer)
Installs the specified endpoint.
|
boolean |
isActive() |
void |
onStarted(Endpoint endpoint,
EndpointInstaller installer) |
void |
onStopped(Endpoint endpoint) |
void |
process(MgcpEvent event) |
void |
removeInstaller(EndpointInstaller installer)
Uninstalls endpoint defined by specified endpoint installer.
|
void |
setConfiguration(String url)
Modifies path to the configuration file.
|
void |
setConfigurationByURL(URL url) |
void |
setMediaScheduler(org.mobicents.media.server.scheduler.PriorityQueueScheduler scheduler)
Sets job scheduler.
|
void |
setPoolSize(int poolSize)
Assigns pool size.
|
void |
setPort(int port)
Assigns MGCP port number.
|
void |
setResourcesPool(ResourcesPool resourcesPool) |
void |
setTaskScheduler(org.mobicents.media.server.scheduler.Scheduler taskScheduler) |
void |
setUdpInterface(UdpManager udpInterface)
Assigns UDP network interface.
|
void |
start()
Starts the controller.
|
void |
stop()
Stops the controller.
|
void |
uninstall(String name)
Uninstalls the endpoint.
|
protected GlobalTransactionManager txManager
protected int port
protected int poolSize
public void setUdpInterface(UdpManager udpInterface)
udpInterface - the UDP interface .public void setPoolSize(int poolSize)
poolSize - the size of Transaction pool.public void setPort(int port)
port - the port number.public void setMediaScheduler(org.mobicents.media.server.scheduler.PriorityQueueScheduler scheduler)
scheduler - the scheduler instance.public void setTaskScheduler(org.mobicents.media.server.scheduler.Scheduler taskScheduler)
public void setResourcesPool(ResourcesPool resourcesPool)
public void setConfiguration(String url) throws Exception
fileName - the name of the file.Exceptionpublic void createProvider()
public void createGlobalTransactionManager()
public void addInstaller(EndpointInstaller installer)
installer - the endpoints installerpublic void removeInstaller(EndpointInstaller installer)
installer - the endpoints installer.public void start()
public void stop()
public void onStarted(Endpoint endpoint, EndpointInstaller installer)
onStarted in interface ServerManagerpublic void onStopped(Endpoint endpoint)
onStopped in interface ServerManagerpublic void install(Endpoint endpoint, EndpointInstaller installer)
endpoint - the endpoint to installed.public void uninstall(String name)
name - the local name of the endpoint to be uninstalledpublic void activate()
throws IllegalStateException
activate in interface ServerManagerIllegalStateExceptionpublic void deactivate()
throws IllegalStateException
deactivate in interface ServerManagerIllegalStateExceptionpublic boolean isActive()
isActive in interface ServerManagerpublic ControlProtocol getControlProtocol()
getControlProtocol in interface ServerManagerCopyright © 2017 TeleStax, Inc.. All Rights Reserved.