org.mobicents.media.server.testsuite.general
Class AbstractCall

java.lang.Object
  extended by org.mobicents.media.server.testsuite.general.AbstractCall
All Implemented Interfaces:
jain.protocol.ip.mgcp.JainMgcpListener, java.io.Serializable, java.lang.Runnable, java.util.EventListener, org.mobicents.mgcp.stack.JainMgcpExtendedListener
Direct Known Subclasses:
AnnCall

public abstract class AbstractCall
extends java.lang.Object
implements org.mobicents.mgcp.stack.JainMgcpExtendedListener, java.lang.Runnable, java.io.Serializable

Author:
baranowb
See Also:
Serialized Form

Field Summary
protected static java.util.concurrent.atomic.AtomicLong _GLOBAL_SEQ
           
static int _READ_PERIOD
           
protected  int avgJitter
           
protected  jain.protocol.ip.mgcp.message.parms.CallIdentifier callIdentifier
           
protected  java.io.ObjectOutputStream dataDumpChannel
           
protected  java.io.File dataFileName
           
protected  java.nio.channels.DatagramChannel datagramChannel
           
protected  jain.protocol.ip.mgcp.message.parms.EndpointIdentifier endpointIdentifier
           
protected  java.lang.String endpointName
           
protected  java.io.FileOutputStream fos
           
protected  long lastDeliverTimeStamp
           
protected  org.apache.log4j.Logger logger
           
protected  int peakJitter
           
protected  org.mobicents.mgcp.stack.JainMgcpStackProviderImpl provider
           
protected  java.util.concurrent.ScheduledFuture readerTask
           
protected  java.util.concurrent.ScheduledExecutorService readerThread
           
protected  boolean receiveRTP
           
protected  java.util.List<RtpPacket> rtpTraffic
           
protected  long sequence
           
protected  CallState state
           
protected  AbstractTestCase testCase
           
protected  java.util.concurrent.ScheduledFuture<?> timeoutHandle
           
 
Constructor Summary
AbstractCall(AbstractTestCase testCase)
           
 
Method Summary
 int getAvgJitter()
           
 jain.protocol.ip.mgcp.message.parms.CallIdentifier getCallID()
           
 jain.protocol.ip.mgcp.message.parms.EndpointIdentifier getEndpoint()
           
protected  java.lang.String getLocalDescriptor(int port)
           
 int getPeakJitter()
           
 java.util.List<RtpPacket> getRtp()
           
 long getSequence()
           
 CallState getState()
           
 java.util.concurrent.ScheduledFuture<?> getTimeoutHandle()
           
protected  void initSocket()
           
 void run()
           
protected  void setState(CallState state)
           
 void setTimeoutHandle(java.util.concurrent.ScheduledFuture<?> timeoutHandle)
           
abstract  void start()
           
abstract  void stop()
           
abstract  void timeOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mobicents.mgcp.stack.JainMgcpExtendedListener
transactionEnded, transactionRxTimedOut, transactionTxTimedOut
 
Methods inherited from interface jain.protocol.ip.mgcp.JainMgcpListener
processMgcpCommandEvent, processMgcpResponseEvent
 

Field Detail

logger

protected transient org.apache.log4j.Logger logger

_READ_PERIOD

public static final int _READ_PERIOD
See Also:
Constant Field Values

_GLOBAL_SEQ

protected static final transient java.util.concurrent.atomic.AtomicLong _GLOBAL_SEQ

sequence

protected final long sequence

state

protected CallState state

avgJitter

protected int avgJitter

peakJitter

protected int peakJitter

lastDeliverTimeStamp

protected long lastDeliverTimeStamp

dataFileName

protected transient java.io.File dataFileName

fos

protected transient java.io.FileOutputStream fos

dataDumpChannel

protected transient java.io.ObjectOutputStream dataDumpChannel

rtpTraffic

protected transient java.util.List<RtpPacket> rtpTraffic

endpointName

protected java.lang.String endpointName

endpointIdentifier

protected jain.protocol.ip.mgcp.message.parms.EndpointIdentifier endpointIdentifier

callIdentifier

protected jain.protocol.ip.mgcp.message.parms.CallIdentifier callIdentifier

testCase

protected transient AbstractTestCase testCase

datagramChannel

protected transient java.nio.channels.DatagramChannel datagramChannel

readerThread

protected final transient java.util.concurrent.ScheduledExecutorService readerThread

readerTask

protected transient java.util.concurrent.ScheduledFuture readerTask

receiveRTP

protected transient boolean receiveRTP

provider

protected transient org.mobicents.mgcp.stack.JainMgcpStackProviderImpl provider

timeoutHandle

protected transient java.util.concurrent.ScheduledFuture<?> timeoutHandle
Constructor Detail

AbstractCall

public AbstractCall(AbstractTestCase testCase)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

initSocket

protected void initSocket()
                   throws java.io.IOException
Throws:
java.io.IOException

getRtp

public java.util.List<RtpPacket> getRtp()
                                 throws java.io.IOException
Throws:
java.io.IOException

getState

public CallState getState()

getAvgJitter

public int getAvgJitter()

getPeakJitter

public int getPeakJitter()

getEndpoint

public jain.protocol.ip.mgcp.message.parms.EndpointIdentifier getEndpoint()

getCallID

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

getSequence

public long getSequence()

setState

protected void setState(CallState state)

getLocalDescriptor

protected java.lang.String getLocalDescriptor(int port)

run

public void run()
Specified by:
run in interface java.lang.Runnable

start

public abstract void start()

timeOut

public abstract void timeOut()

stop

public abstract void stop()

getTimeoutHandle

public java.util.concurrent.ScheduledFuture<?> getTimeoutHandle()

setTimeoutHandle

public void setTimeoutHandle(java.util.concurrent.ScheduledFuture<?> timeoutHandle)


Copyright © 2009. All Rights Reserved.