com.wowza.wms.rtp.model
Class RTPSessions

Object
  extended by com.wowza.wms.rtp.model.RTPSessions

public class RTPSessions
extends Object

RTPSessions: collection of RTP sessions


Constructor Summary
RTPSessions(IVHost vhost)
          Constructor
 
Method Summary
 RTPSession addSession(RTPSession session)
          Add RTP session
 void addSessionListener(IRTPSessionNotify listener)
          Add a RTP session listener
 String getNextSessionId()
          Get next RTP session id for new session
 RTPSession getSession(String sessionId)
          Get RTP session by session id
 java.util.List<String> getSessionIds()
          Get list of current RTP session ids
 IVHost getVHost()
          Get vhost
 void notifySessionCreate(IApplicationInstance appInstance, RTPSession rtpSession)
          Notify session create
 void notifySessionCreate(RTPSession rtpSession)
          Notify session create
 void notifySessionDestroy(IApplicationInstance appInstance, RTPSession rtpSession)
          Notify session destroy
 void notifySessionDestroy(RTPSession rtpSession)
          Notify session destroy
 void releaseSessionId(String sessionIdStr)
          Release an RTP session id
 RTPSession removeSession(RTPSession session)
          Remove RTP session by object
 RTPSession removeSession(String sessionId)
          Remove RTP session by session id
 void removeSessionListener(IRTPSessionNotify listener)
          Remove an RTP session listener
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTPSessions

public RTPSessions(IVHost vhost)
Constructor

Parameters:
vhost - vhost
Method Detail

addSession

public RTPSession addSession(RTPSession session)
Add RTP session

Parameters:
session - RTP session
Returns:
RTP session added

addSessionListener

public void addSessionListener(IRTPSessionNotify listener)
Add a RTP session listener

Parameters:
listener - RTP session listener

getNextSessionId

public String getNextSessionId()
Get next RTP session id for new session

Returns:
RTP session id

getSession

public RTPSession getSession(String sessionId)
Get RTP session by session id

Parameters:
sessionId - session id
Returns:
RTP session

getSessionIds

public java.util.List<String> getSessionIds()
Get list of current RTP session ids

Returns:
list of current RTP session ids

getVHost

public IVHost getVHost()
Get vhost

Returns:
vhost

notifySessionCreate

public void notifySessionCreate(IApplicationInstance appInstance,
                                RTPSession rtpSession)
Notify session create

Parameters:
appInstance - application instance
rtpSession - RTP session

notifySessionCreate

public void notifySessionCreate(RTPSession rtpSession)
Notify session create

Parameters:
rtpSession - RTP session

notifySessionDestroy

public void notifySessionDestroy(IApplicationInstance appInstance,
                                 RTPSession rtpSession)
Notify session destroy

Parameters:
appInstance - application instance
rtpSession - RTP session

notifySessionDestroy

public void notifySessionDestroy(RTPSession rtpSession)
Notify session destroy

Parameters:
rtpSession - RTP session

releaseSessionId

public void releaseSessionId(String sessionIdStr)
Release an RTP session id

Parameters:
sessionIdStr - RTP session id

removeSession

public RTPSession removeSession(RTPSession session)
Remove RTP session by object

Parameters:
session - RTP session
Returns:
RTP session if removed

removeSession

public RTPSession removeSession(String sessionId)
Remove RTP session by session id

Parameters:
sessionId - session id
Returns:
RTP session if removed

removeSessionListener

public void removeSessionListener(IRTPSessionNotify listener)
Remove an RTP session listener

Parameters:
listener - RTP session listener