|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.mgcp.controller.Controller
public class Controller
The MGCP access point.
| Field Summary | |
|---|---|
protected NamingTree |
endpoints
|
protected MgcpProvider |
mgcpProvider
|
protected int |
poolSize
|
protected int |
port
|
protected org.mobicents.media.server.scheduler.Scheduler |
scheduler
|
protected MediaServer |
server
|
protected GlobalTransactionManager |
txManager
|
protected UdpManager |
udpInterface
|
| Constructor Summary | |
|---|---|
Controller()
|
|
| Method Summary | |
|---|---|
void |
createGlobalTransactionManager()
|
void |
createProvider()
|
void |
onStarted(Endpoint endpoint,
EndpointInstaller installer)
|
void |
onStopped(Endpoint endpoint)
|
void |
process(MgcpEvent event)
|
void |
setConfiguration(String url)
Modifies path to the configuration file. |
void |
setConfigurationByURL(URL url)
|
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 |
|---|
protected UdpManager udpInterface
protected int port
protected org.mobicents.media.server.scheduler.Scheduler scheduler
protected MgcpProvider mgcpProvider
protected MediaServer server
protected NamingTree endpoints
protected GlobalTransactionManager txManager
protected int poolSize
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
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 setServer(MediaServer server)
server - the server instance.public void setScheduler(org.mobicents.media.server.scheduler.Scheduler scheduler)
scheduler - the scheduler instance.
public void setConfiguration(String url)
throws Exception
fileName - the name of the file.
Exception
public void setConfigurationByURL(URL url)
throws Exception
Exceptionpublic void createProvider()
public void createGlobalTransactionManager()
public void start()
public void stop()
public void process(MgcpEvent event)
process in interface Listener<MgcpEvent>
public void onStarted(Endpoint endpoint,
EndpointInstaller installer)
onStarted in interface ServerManagerpublic void onStopped(Endpoint endpoint)
onStopped in interface ServerManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||