|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSink
org.mobicents.media.server.impl.AbstractSinkSet
org.mobicents.media.server.impl.resource.Multiplexer
public class Multiplexer
Combines several signals for transmission over a single medium. A
demultiplexor completes the process by separating multiplexed signals from a
transmission line. Frequently a multiplexor and demultiplexor are combined
into a single device capable of processing both outgoing and incoming
signals.
Multiplexer combines data and sends them, it is used as output for components.
| Field Summary |
|---|
| Fields inherited from class org.mobicents.media.server.impl.AbstractSink |
|---|
logger, otherParty |
| Fields inherited from class org.mobicents.media.server.impl.BaseComponent |
|---|
format |
| Constructor Summary | |
|---|---|
Multiplexer(java.lang.String name)
Creates new instance of multiplexer. |
|
| Method Summary | |
|---|---|
void |
connect(org.mobicents.media.MediaSink sink)
|
AbstractSink |
createSink(org.mobicents.media.MediaSource otherParty)
|
void |
destroySink(AbstractSink sink)
|
void |
disconnect(org.mobicents.media.MediaSink sink)
|
org.mobicents.media.Format[] |
getFormats()
(Non Java-doc). |
org.mobicents.media.MediaSource |
getOutput()
(Non Java-doc). |
long |
getTimestamp()
|
void |
onMediaTransfer(org.mobicents.media.Buffer buffer)
This methos is called when new portion of media arrives. |
void |
setConnection(org.mobicents.media.server.spi.Connection connection)
(Non Java-doc.) |
void |
setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
(Non Java-doc.) |
void |
start()
(Non Java-doc). |
void |
stop()
(Non Java-doc). |
void |
sync(org.mobicents.media.MediaSource mediaSource)
|
org.mobicents.media.server.spi.clock.TimerTask |
sync(org.mobicents.media.server.spi.clock.Task task)
|
void |
unsync(org.mobicents.media.MediaSource mediaSource)
|
| Methods inherited from class org.mobicents.media.server.impl.AbstractSinkSet |
|---|
connect, disconnect, getActiveSinkCount, getStreams, isMultipleConnectionsAllowed |
| Methods inherited from class org.mobicents.media.server.impl.AbstractSink |
|---|
assignPreffered, connect, disconnect, failed, getBytesReceived, getInterface, getPacketsReceived, getPreffered, isConnected, isStarted, receive, resetStats, selectPreffered, started, stopped |
| Methods inherited from class org.mobicents.media.server.impl.BaseComponent |
|---|
addListener, getConnection, getEndpoint, getFormat, getId, getName, removeListener, sendEvent, subset, 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, getFormat, getId, getInterface, getName, removeListener, resetStats |
| Methods inherited from interface org.mobicents.media.MediaSink |
|---|
connect, disconnect, getBytesReceived, getPacketsReceived, isConnected, isStarted, receive |
| Constructor Detail |
|---|
public Multiplexer(java.lang.String name)
name - the name of the multiplexer to be created.| Method Detail |
|---|
public void connect(org.mobicents.media.MediaSink sink)
connect in interface org.mobicents.media.Outletpublic void disconnect(org.mobicents.media.MediaSink sink)
disconnect in interface org.mobicents.media.Outletpublic AbstractSink createSink(org.mobicents.media.MediaSource otherParty)
createSink in class AbstractSinkSetpublic void start()
AbstractSink
start in interface org.mobicents.media.MediaSinkstart in interface org.mobicents.media.server.spi.SyncSourcestart in class AbstractSinkMediaSink.start().public void stop()
AbstractSink
stop in interface org.mobicents.media.MediaSinkstop in interface org.mobicents.media.server.spi.SyncSourcestop in class AbstractSinkMediaSink.stop().public org.mobicents.media.MediaSource getOutput()
getOutput in interface org.mobicents.media.OutletOutlet.getOutput().public org.mobicents.media.Format[] getFormats()
getFormats in interface org.mobicents.media.MediaSinkMediaSource.getFormats().public void setConnection(org.mobicents.media.server.spi.Connection connection)
BaseComponent
setConnection in interface org.mobicents.media.ComponentsetConnection in class BaseComponentorg.mobicents.media.Component#setConnection().public void setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
BaseComponent
setEndpoint in interface org.mobicents.media.ComponentsetEndpoint in class BaseComponentComponent.setEndpoint(Endpoint).
public void onMediaTransfer(org.mobicents.media.Buffer buffer)
throws java.io.IOException
AbstractSink
onMediaTransfer in class AbstractSinkbuffer - the new portion of media data.
java.io.IOExceptionpublic void destroySink(AbstractSink sink)
destroySink in class AbstractSinkSetpublic void sync(org.mobicents.media.MediaSource mediaSource)
sync in interface org.mobicents.media.server.spi.SyncSourcepublic void unsync(org.mobicents.media.MediaSource mediaSource)
unsync in interface org.mobicents.media.server.spi.SyncSourcepublic long getTimestamp()
getTimestamp in interface org.mobicents.media.server.spi.SyncSourcepublic org.mobicents.media.server.spi.clock.TimerTask sync(org.mobicents.media.server.spi.clock.Task task)
sync in interface org.mobicents.media.server.spi.SyncSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||