org.mobicents.media.server.impl.resource.echo
Class EchoSource

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSource
          extended by org.mobicents.media.server.impl.resource.echo.EchoSource
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, org.mobicents.media.Component, org.mobicents.media.MediaSource

public class EchoSource
extends AbstractSource

Author:
kulikov
See Also:
Serialized Form

Field Summary
protected  EchoSink sink
           
 
Fields inherited from class org.mobicents.media.server.impl.AbstractSource
otherParty
 
Constructor Summary
EchoSource(java.lang.String name)
           
EchoSource(java.lang.String name, EchoSink sink)
           
 
Method Summary
protected  void delivery(org.mobicents.media.Buffer buffer)
           
 void evolve(org.mobicents.media.Buffer buffer, long sequenceNumber)
          This method must be overriden by concrete media source.
 org.mobicents.media.Format[] getFormats()
           
 void start()
          (Non Java-doc).
 void stop()
          (Non Java-doc).
 
Methods inherited from class org.mobicents.media.server.impl.AbstractSource
afterStop, beforeStart, completed, connect, connect, disconnect, disconnect, failed, getBytesTransmitted, getPacketsTransmitted, getSupportedFormatList, getSyncSource, isConnected, isMultipleConnectionsAllowed, isStarted, resetStats, run, setSyncSource, started, stopped
 
Methods inherited from class org.mobicents.media.server.impl.BaseComponent
addListener, getConnection, getEndpoint, getId, getName, getResourceType, removeListener, sendEvent, setConnection, setEndpoint, setResourceType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.Component
addListener, getConnection, getEndpoint, getId, getName, removeListener, setConnection, setEndpoint
 

Field Detail

sink

protected EchoSink sink
Constructor Detail

EchoSource

public EchoSource(java.lang.String name)

EchoSource

public EchoSource(java.lang.String name,
                  EchoSink sink)
Method Detail

start

public void start()
Description copied from class: AbstractSource
(Non Java-doc).

Specified by:
start in interface org.mobicents.media.Component
Overrides:
start in class AbstractSource
See Also:
Component.start().

stop

public void stop()
Description copied from class: AbstractSource
(Non Java-doc).

Specified by:
stop in interface org.mobicents.media.Component
Overrides:
stop in class AbstractSource
See Also:
Component.stop().

getFormats

public org.mobicents.media.Format[] getFormats()

delivery

protected void delivery(org.mobicents.media.Buffer buffer)

evolve

public void evolve(org.mobicents.media.Buffer buffer,
                   long sequenceNumber)
Description copied from class: AbstractSource
This method must be overriden by concrete media source. The media have to fill buffer with media data and attributes.

Specified by:
evolve in class AbstractSource
Parameters:
buffer - the buffer object for media.
sequenceNumber - the number of timer ticks from the begining.


Copyright © 2009. All Rights Reserved.