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.util.EventListener, RtpSocketListener, org.mobicents.mgcp.stack.JainMgcpExtendedListener
Direct Known Subclasses:
AnnCall

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

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  jain.protocol.ip.mgcp.message.parms.EndpointIdentifier endpointIdentifier
           
protected  java.lang.String endpointName
           
protected  java.io.FileOutputStream fos
           
protected  java.io.FileOutputStream graphDataDumpChannel
           
protected  java.io.File graphDataFileName
           
protected  long lastDeliverTimeStamp
           
protected  org.apache.log4j.Logger logger
           
protected  int peakJitter
           
protected  org.mobicents.mgcp.stack.JainMgcpStackProviderImpl provider
           
protected  java.util.List<RtpPacket> rtpTraffic
           
protected  long sequence
           
protected  RtpSocket socket
           
protected  CallState state
           
protected  AbstractTestCase testCase
           
protected  java.util.concurrent.ScheduledFuture<?> timeoutHandle
           
 
Constructor Summary
AbstractCall(AbstractTestCase testCase)
           
 
Method Summary
 void error(java.lang.Exception e)
           
 int getAvgJitter()
           
 jain.protocol.ip.mgcp.message.parms.CallIdentifier getCallID()
           
 jain.protocol.ip.mgcp.message.parms.EndpointIdentifier getEndpoint()
           
 java.io.File getGraphDataFileName()
           
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 receive(RtpPacket packet)
           
protected  void releaseSocket()
           
static void resetSequence()
           
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

graphDataFileName

protected transient java.io.File graphDataFileName

fos

protected transient java.io.FileOutputStream fos

dataDumpChannel

protected transient java.io.ObjectOutputStream dataDumpChannel

graphDataDumpChannel

protected transient java.io.FileOutputStream graphDataDumpChannel

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

socket

protected transient RtpSocket socket

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

resetSequence

public static void resetSequence()

getGraphDataFileName

public java.io.File getGraphDataFileName()

initSocket

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

releaseSocket

protected void releaseSocket()

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)

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)

error

public void error(java.lang.Exception e)
Specified by:
error in interface RtpSocketListener

receive

public void receive(RtpPacket packet)
Specified by:
receive in interface RtpSocketListener


Copyright © 2009. All Rights Reserved.