org.mobicents.protocols.mgcp.stack
Class JainMgcpStackProviderImpl

java.lang.Object
  extended by org.mobicents.protocols.mgcp.stack.JainMgcpStackProviderImpl
All Implemented Interfaces:
jain.protocol.ip.mgcp.JainMgcpProvider, ExtendedJainMgcpProvider

public class JainMgcpStackProviderImpl
extends Object
implements ExtendedJainMgcpProvider


Field Summary
protected  Set<jain.protocol.ip.mgcp.JainMgcpListener> jainListeners
           
protected  Set<JainMgcpExtendedListener> jainMobicentsListeners
           
protected  jain.protocol.ip.mgcp.message.parms.NotifiedEntity notifiedEntity
           
 
Constructor Summary
JainMgcpStackProviderImpl(JainMgcpStackImpl runningStack)
           
 
Method Summary
 void addJainMgcpListener(jain.protocol.ip.mgcp.JainMgcpListener listener)
           
 void flush()
           
 jain.protocol.ip.mgcp.JainMgcpStack getJainMgcpStack()
           
 jain.protocol.ip.mgcp.message.parms.NotifiedEntity getNotifiedEntity()
           
 jain.protocol.ip.mgcp.message.parms.CallIdentifier getUniqueCallIdentifier()
           
 jain.protocol.ip.mgcp.message.parms.RequestIdentifier getUniqueRequestIdentifier()
           
 int getUniqueTransactionHandler()
           
 void processMgcpCommandEvent(jain.protocol.ip.mgcp.JainMgcpCommandEvent command)
           
 void processMgcpResponseEvent(jain.protocol.ip.mgcp.JainMgcpResponseEvent response, jain.protocol.ip.mgcp.JainMgcpEvent command)
           
 void processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent command)
           
 void processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent command)
           
 void removeJainMgcpListener(jain.protocol.ip.mgcp.JainMgcpListener listener)
           
 void sendAsyncMgcpEvents(jain.protocol.ip.mgcp.JainMgcpEvent[] events)
          Enqueues events in stack buffer.
 void sendMgcpEvents(jain.protocol.ip.mgcp.JainMgcpEvent[] events)
           
 void setNotifiedEntity(jain.protocol.ip.mgcp.message.parms.NotifiedEntity notifiedEntity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jainListeners

protected Set<jain.protocol.ip.mgcp.JainMgcpListener> jainListeners

jainMobicentsListeners

protected Set<JainMgcpExtendedListener> jainMobicentsListeners

notifiedEntity

protected jain.protocol.ip.mgcp.message.parms.NotifiedEntity notifiedEntity
Constructor Detail

JainMgcpStackProviderImpl

public JainMgcpStackProviderImpl(JainMgcpStackImpl runningStack)
Method Detail

setNotifiedEntity

public void setNotifiedEntity(jain.protocol.ip.mgcp.message.parms.NotifiedEntity notifiedEntity)

getNotifiedEntity

public jain.protocol.ip.mgcp.message.parms.NotifiedEntity getNotifiedEntity()

addJainMgcpListener

public void addJainMgcpListener(jain.protocol.ip.mgcp.JainMgcpListener listener)
                         throws TooManyListenersException
Specified by:
addJainMgcpListener in interface jain.protocol.ip.mgcp.JainMgcpProvider
Throws:
TooManyListenersException

getJainMgcpStack

public jain.protocol.ip.mgcp.JainMgcpStack getJainMgcpStack()
Specified by:
getJainMgcpStack in interface jain.protocol.ip.mgcp.JainMgcpProvider

removeJainMgcpListener

public void removeJainMgcpListener(jain.protocol.ip.mgcp.JainMgcpListener listener)
Specified by:
removeJainMgcpListener in interface jain.protocol.ip.mgcp.JainMgcpProvider

sendMgcpEvents

public void sendMgcpEvents(jain.protocol.ip.mgcp.JainMgcpEvent[] events)
                    throws IllegalArgumentException
Specified by:
sendMgcpEvents in interface jain.protocol.ip.mgcp.JainMgcpProvider
Throws:
IllegalArgumentException

getUniqueTransactionHandler

public int getUniqueTransactionHandler()

processMgcpResponseEvent

public void processMgcpResponseEvent(jain.protocol.ip.mgcp.JainMgcpResponseEvent response,
                                     jain.protocol.ip.mgcp.JainMgcpEvent command)

processMgcpCommandEvent

public void processMgcpCommandEvent(jain.protocol.ip.mgcp.JainMgcpCommandEvent command)

processTxTimeout

public void processTxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent command)

processRxTimeout

public void processRxTimeout(jain.protocol.ip.mgcp.JainMgcpCommandEvent command)

getUniqueCallIdentifier

public jain.protocol.ip.mgcp.message.parms.CallIdentifier getUniqueCallIdentifier()

getUniqueRequestIdentifier

public jain.protocol.ip.mgcp.message.parms.RequestIdentifier getUniqueRequestIdentifier()

sendAsyncMgcpEvents

public void sendAsyncMgcpEvents(jain.protocol.ip.mgcp.JainMgcpEvent[] events)
                         throws IllegalArgumentException
Description copied from interface: ExtendedJainMgcpProvider
Enqueues events in stack buffer. Current thread does not loose CPU for I/O and other operations. On next stacks worker thread/s buffer is sent.

Specified by:
sendAsyncMgcpEvents in interface ExtendedJainMgcpProvider
Throws:
IllegalArgumentException

flush

public void flush()


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