org.mobicents.media.server.resource
Class Pipe

java.lang.Object
  extended by org.mobicents.media.server.resource.Pipe

public class Pipe
extends java.lang.Object

Pipe is part of a channel and joins individual components.

Author:
kulikov

Constructor Summary
protected Pipe(Channel channel)
          Coinstructs new pipe.
 
Method Summary
 void close()
          Closes this pipe if it was open and do nothing if pipe was not open.
 org.mobicents.media.server.spi.Valve getValve()
           
 void open(java.lang.String inletName, java.lang.String outletName)
          Joins source with sink
 void setValve(org.mobicents.media.server.spi.Valve valve)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pipe

protected Pipe(Channel channel)
Coinstructs new pipe.

Parameters:
channel - the owner of this pipe;
Method Detail

getValve

public org.mobicents.media.server.spi.Valve getValve()

setValve

public void setValve(org.mobicents.media.server.spi.Valve valve)

open

public void open(java.lang.String inletName,
                 java.lang.String outletName)
          throws UnknownComponentException
Joins source with sink

Parameters:
inletName - the name of source component.
outletName - the name of sink component.
Throws:
UnknownComponentException - if inletName or outletName is unknown

start

public void start()

stop

public void stop()

close

public void close()
Closes this pipe if it was open and do nothing if pipe was not open.



Copyright © 2010. All Rights Reserved.