org.mobicents.media.server.mgcp.controller
Class Controller

java.lang.Object
  extended by org.mobicents.media.server.mgcp.controller.Controller
All Implemented Interfaces:
MgcpListener, Listener<MgcpEvent>, ServerManager

public class Controller
extends Object
implements MgcpListener, ServerManager

The MGCP access point.

Author:
kulikov

Field Summary
protected  NamingTree endpoints
           
protected  MgcpProvider mgcpProvider
           
protected  org.mobicents.media.server.scheduler.Scheduler scheduler
           
protected  MediaServer server
           
 
Constructor Summary
Controller()
           
 
Method Summary
 void onStarted(Endpoint endpoint)
           
 void onStopped(Endpoint endpoint)
           
 void process(MgcpEvent event)
           
 void setConfiguration(String url)
          Modifies path to the configuration file.
 void setPoolSize(int poolSize)
          Assigns pool size.
 void setPort(int port)
          Assigns MGCP port number.
 void setScheduler(org.mobicents.media.server.scheduler.Scheduler scheduler)
          Sets job scheduler.
 void setServer(MediaServer server)
          Set server to control.
 void setUdpInterface(UdpManager udpInterface)
          Assigns UDP network interface.
 void start()
          Starts controller.
 void stop()
          Stops controller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scheduler

protected org.mobicents.media.server.scheduler.Scheduler scheduler

mgcpProvider

protected MgcpProvider mgcpProvider

server

protected MediaServer server

endpoints

protected NamingTree endpoints
Constructor Detail

Controller

public Controller()
Method Detail

setUdpInterface

public void setUdpInterface(UdpManager udpInterface)
Assigns UDP network interface.

Parameters:
udpInterface - the UDP interface .

setPoolSize

public void setPoolSize(int poolSize)
Assigns pool size.

Parameters:
poolSize - the size of Transaction pool.

setPort

public void setPort(int port)
Assigns MGCP port number.

Parameters:
port - the port number.

setServer

public void setServer(MediaServer server)
Set server to control.

Parameters:
server - the server instance.

setScheduler

public void setScheduler(org.mobicents.media.server.scheduler.Scheduler scheduler)
Sets job scheduler.

Parameters:
scheduler - the scheduler instance.

setConfiguration

public void setConfiguration(String url)
                      throws Exception
Modifies path to the configuration file. The file must be present in the folder /conf/ directory

Parameters:
fileName - the name of the file.
Throws:
Exception

start

public void start()
Starts controller.


stop

public void stop()
Stops controller.


process

public void process(MgcpEvent event)
Specified by:
process in interface Listener<MgcpEvent>

onStarted

public void onStarted(Endpoint endpoint)
Specified by:
onStarted in interface ServerManager

onStopped

public void onStopped(Endpoint endpoint)
Specified by:
onStopped in interface ServerManager


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