|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.mgcp.MgcpProvider
public class MgcpProvider
| Constructor Summary | |
|---|---|
protected |
MgcpProvider(String name,
UdpManager transport,
int port,
org.mobicents.media.server.scheduler.Scheduler scheduler)
Creates new provider instance. |
|
MgcpProvider(UdpManager transport,
int port,
org.mobicents.media.server.scheduler.Scheduler scheduler)
Creates new provider instance. |
| Method Summary | |
|---|---|
void |
activate()
|
void |
addListener(MgcpListener listener)
Registers new even listener. |
MgcpEvent |
createEvent(int eventID,
SocketAddress address)
Creates new event object. |
void |
removeListener(MgcpListener listener)
Unregisters event listener. |
void |
send(MgcpEvent event)
Sends message. |
void |
send(MgcpEvent event,
SocketAddress destination)
Sends message. |
void |
send(MgcpMessage message,
SocketAddress destination)
Sends message. |
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MgcpProvider(UdpManager transport,
int port,
org.mobicents.media.server.scheduler.Scheduler scheduler)
transport - the UDP interface instance.port - port number to bindscheduler - job scheduler
protected MgcpProvider(String name,
UdpManager transport,
int port,
org.mobicents.media.server.scheduler.Scheduler scheduler)
transport - the UDP interface instance.port - port number to bindscheduler - job scheduler| Method Detail |
|---|
public MgcpEvent createEvent(int eventID,
SocketAddress address)
eventID - the event identifier: REQUEST or RESPONSE
public void send(MgcpEvent event,
SocketAddress destination)
throws IOException
message - the message to send.destination - the IP address of the destination.
IOException
public void send(MgcpEvent event)
throws IOException
message - the message to send.
IOException
public void send(MgcpMessage message,
SocketAddress destination)
throws IOException
message - the message to send.destination - the IP address of the destination.
IOException
public void addListener(MgcpListener listener)
throws TooManyListenersException
listener - the listener instance to be registered.
TooManyListenersExceptionpublic void removeListener(MgcpListener listener)
listener - the event listener instance to be unregistered.public void activate()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||