org.jboss.media.engine
Class MediaPublisher

java.lang.Object
  extended byorg.jboss.media.engine.MediaPublisher
Direct Known Subclasses:
HttpAudioMediaPublisher (src) , ImageFileMediaPublisher (src) , RtpAudioMediaPublisher (src) , RtpVideoMediaPublisher (src)

public abstract class MediaPublisher
extends java.lang.Object


Field Summary
protected  Logger (src) log
           
 
Constructor Summary
MediaPublisher()
           
 
Method Summary
abstract  void addPluginGraph(MediaPluginGraph (src)  pg)
          Stops publication of the current media
 java.lang.String getContext()
          Returns the context.
 java.lang.String getFileName()
          Returns the fileName.
 java.lang.String getHost()
          Returns the host.
 ObjectName (src) getName()
           
 int getPort()
          Returns the port.
abstract  void publish()
          Publishes the processed media using a the specified protocol server
 void setContext(java.lang.String context)
          Sets the context.
 void setFileName(java.lang.String fileName)
          Sets the fileName.
 void setHost(java.lang.String host)
          Sets the host.
 void setName(ObjectName (src)  name)
           
 void setPort(int port)
          Sets the port.
abstract  void stop()
          Stops publication of the current media
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Logger (src)  log
Constructor Detail

MediaPublisher

public MediaPublisher()
Method Detail

getContext

public java.lang.String getContext()
Returns the context.

Returns:
String

getFileName

public java.lang.String getFileName()
Returns the fileName.

Returns:
String

getHost

public java.lang.String getHost()
Returns the host.

Returns:
String

getPort

public int getPort()
Returns the port.

Returns:
int

setContext

public void setContext(java.lang.String context)
Sets the context.

Parameters:
context - The context to set

setFileName

public void setFileName(java.lang.String fileName)
Sets the fileName.

Parameters:
fileName - The fileName to set

setHost

public void setHost(java.lang.String host)
Sets the host.

Parameters:
host - The host to set

setPort

public void setPort(int port)
Sets the port.

Parameters:
port - The port to set

getName

public ObjectName (src)  getName()
Returns:

setName

public void setName(ObjectName (src)  name)
Parameters:
name -

publish

public abstract void publish()
                      throws java.lang.Exception
Publishes the processed media using a the specified protocol server

Throws:
java.lang.Exception

stop

public abstract void stop()
Stops publication of the current media


addPluginGraph

public abstract void addPluginGraph(MediaPluginGraph (src)  pg)
Stops publication of the current media