|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.resource.Channel
public class Channel
Channel is used to join media source with media sink with customized media path. For customization of media path inner pipes are used where each pipe has c onfigured its inlet and outlet.
| Field Summary | |
|---|---|
protected java.util.HashMap<java.lang.String,org.mobicents.media.Inlet> |
inlets
|
protected java.util.HashMap<java.lang.String,org.mobicents.media.Outlet> |
outlets
|
protected java.util.HashMap<java.lang.String,org.mobicents.media.MediaSink> |
sinks
|
protected java.util.HashMap<java.lang.String,org.mobicents.media.MediaSource> |
sources
|
| Constructor Summary | |
|---|---|
protected |
Channel(java.util.HashMap<java.lang.String,? extends org.mobicents.media.Component> components)
|
protected |
Channel(java.util.HashMap<java.lang.String,org.mobicents.media.MediaSource> sources,
java.util.HashMap<java.lang.String,org.mobicents.media.MediaSink> sinks,
java.util.HashMap<java.lang.String,org.mobicents.media.Inlet> inlets,
java.util.HashMap<java.lang.String,org.mobicents.media.Outlet> outlets)
Constructs new channel with specified components. |
| Method Summary | |
|---|---|
void |
close()
|
void |
closePipe(Pipe pipe)
Closes specified pipe. |
void |
connect(Channel rxChannel)
Establish a connection with other channel |
org.mobicents.media.Format[] |
connect(org.mobicents.media.MediaSink sink)
Connects channel to a sink. |
org.mobicents.media.Format[] |
connect(org.mobicents.media.MediaSource source)
Connects channel to a source. |
void |
disconnect(Channel channel)
Deletes connection with other channel |
void |
disconnect(org.mobicents.media.MediaSink sink)
Disconnects channel from a sink. |
void |
disconnect(org.mobicents.media.MediaSource source)
Disconnects channel from a source. |
long |
getBytesTransmitted()
|
org.mobicents.media.Component |
getComponent(java.lang.Class _interface)
|
org.mobicents.media.Component |
getComponent(java.lang.String name)
Searches the component with specified name that can be explicitly added to this channel. |
org.mobicents.media.server.spi.Connection |
getConnection()
|
org.mobicents.media.server.spi.Endpoint |
getEndpoint()
|
org.mobicents.media.Format[] |
getFormats()
|
org.mobicents.media.Format[] |
getInputFormats()
|
org.mobicents.media.Format[] |
getOutputFormats()
|
long |
getPacketsTransmitted()
|
void |
openPipe(Pipe pipe,
java.lang.String inlet,
java.lang.String outlet)
Opens pipes between source and sink. |
void |
setConnection(org.mobicents.media.server.spi.Connection connection)
|
void |
setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
|
void |
start()
|
void |
stop()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<java.lang.String,org.mobicents.media.MediaSource> sources
protected java.util.HashMap<java.lang.String,org.mobicents.media.MediaSink> sinks
protected java.util.HashMap<java.lang.String,org.mobicents.media.Inlet> inlets
protected java.util.HashMap<java.lang.String,org.mobicents.media.Outlet> outlets
| Constructor Detail |
|---|
protected Channel(java.util.HashMap<java.lang.String,org.mobicents.media.MediaSource> sources,
java.util.HashMap<java.lang.String,org.mobicents.media.MediaSink> sinks,
java.util.HashMap<java.lang.String,org.mobicents.media.Inlet> inlets,
java.util.HashMap<java.lang.String,org.mobicents.media.Outlet> outlets)
sources - the map of components of type MediaSourcesinks - the map of components of type MediaSinkinlets - the map of components of type Inletoutlets - the map of components of type Outletprotected Channel(java.util.HashMap<java.lang.String,? extends org.mobicents.media.Component> components)
| Method Detail |
|---|
public org.mobicents.media.Format[] getFormats()
public org.mobicents.media.server.spi.Endpoint getEndpoint()
public org.mobicents.media.server.spi.Connection getConnection()
public void setEndpoint(org.mobicents.media.server.spi.Endpoint endpoint)
public void setConnection(org.mobicents.media.server.spi.Connection connection)
public void start()
public void stop()
public void openPipe(Pipe pipe,
java.lang.String inlet,
java.lang.String outlet)
throws UnknownComponentException
pipe - the pipe to be openedinlet - the name of the sourceoutlet - the name of the destination. *
UnknownComponentException - if name of the sink or source is not known.public void closePipe(Pipe pipe)
pipe - the pipe to be closed.public org.mobicents.media.Format[] getInputFormats()
public org.mobicents.media.Format[] getOutputFormats()
public org.mobicents.media.Format[] connect(org.mobicents.media.MediaSink sink)
sink - the sink to connect topublic void disconnect(org.mobicents.media.MediaSink sink)
sink - the sink to connect frompublic org.mobicents.media.Format[] connect(org.mobicents.media.MediaSource source)
source - the source to connect topublic void disconnect(org.mobicents.media.MediaSource source)
source - the source to connect frompublic void connect(Channel rxChannel)
other - public void disconnect(Channel channel)
other - public org.mobicents.media.Component getComponent(java.lang.String name)
name - the name of the component to find.
public org.mobicents.media.Component getComponent(java.lang.Class _interface)
public void close()
public long getPacketsTransmitted()
public long getBytesTransmitted()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||