|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IHTTPStreamerSession
IHTTPStreamerSession: HTTP streaming session interface
| Field Summary | |
|---|---|
static int |
SESSIONPROTOCOL_COUNT
|
static int |
SESSIONPROTOCOL_CUPERTINOSTREAMING
|
static int |
SESSIONPROTOCOL_SANJOSESTREAMING
|
static int |
SESSIONPROTOCOL_SMOOTHSTREAMING
|
static int |
SESSIONPROTOCOL_UNKNOWN
|
static int |
SESSIONPROTOCOL_WEBMSTREAMING
|
static int |
SESSIONTYPE_LIVE
|
static int |
SESSIONTYPE_UNKNOWN
|
static int |
SESSIONTYPE_VOD
|
| Method Summary | |
|---|---|
void |
acceptSession()
Accept the HTTP session. |
void |
addIOPerformance(IOPerformanceCounter totalIOPerformanceResult)
Internal user, keep track of IO performance |
void |
addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)
Internal user, keep track of IO performance |
void |
addStreamDomainStr(String streamDomainStr)
Internal user, add stream name |
void |
addStreamDomainStrs(java.util.List<String> streamNames)
Internal user, add stream names |
boolean |
checkAndSetPlayLogged()
If play has not been logged return false, else returns true, sets play has been logged |
void |
clearLoggingValues()
Internal user, clear logging values |
boolean |
containsStreamDomainStr(String streamDomainStr)
Internal user, test stream name |
boolean |
containsStreamNameParts(String streamName)
Return true if stream name in stream name parts |
IApplicationInstance |
getAppInstance()
Get the application instance associated with this HTTP session |
com.wowza.wms.client.ConnectionHolder |
getConnectionHolder()
Connection holder for this session |
String |
getCookieStr()
Get cookie string |
ElapsedTimer |
getElapsedTime()
Get the elapsed timer to see how long this session has been running |
com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo |
getFileInfo(String streamName)
Get the file information if video on demand streaming |
IHTTPStreamerAdapter |
getHTTPStreamerAdapter()
Get the HTTP streaming adapter associated with this HTTP session |
IOPerformanceCounter |
getIOPerformanceCounter()
Get IO performance counter |
String |
getIpAddress()
Get the IP address |
String |
getLiveStreamingPacketizer()
Get the live stream packetizer name |
Object |
getLock()
Get the synchronization lock for this HTTP session |
WMSProperties |
getProperties()
Get the properties associated with this session |
String |
getQueryStr()
Get query string |
String |
getReferrer()
Get referrer |
String |
getServerIp()
Get server IP address |
int |
getServerPort()
Get server port |
String |
getSessionId()
Get session id |
int |
getSessionProtocol()
Get protocol, see SESSIONPROTOCOL_* |
int |
getSessionTimeout()
Get the session timeout for this session (milliseconds) |
int |
getSessionType()
Get session type: see SESSIONTYPE_* |
IMediaStream |
getStream()
Get the IMediaStream associated with this HTTP session |
String |
getStreamExt()
Get stream extension |
String |
getStreamName()
Get stream name |
com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts |
getStreamNameParts(String streamName)
Break the stream name into parts |
long |
getStreamPosition()
Get stream position |
String |
getTimeRunning()
Get the time this session has been running (milliseconds) |
double |
getTimeRunningSeconds()
Get the time this session has been running (seconds) |
String |
getUri()
Get the URI associated with initial request |
String |
getUserAgent()
Get user agent |
IVHost |
getVHost()
Get vhost |
boolean |
isAcceptSession()
Return true if this session has not been rejected |
boolean |
isActive()
Is this session active, false after shutdown |
boolean |
isFileInfo(String streamName)
Return true if the is file information for a given stream name |
boolean |
isPlayLogged()
true, if play has been logged |
boolean |
isTimeout(long timecode)
Return true if this session is timed out. |
boolean |
isTimeoutSession()
Get is session timeout. |
boolean |
isValidated()
Has this session been validated |
boolean |
isValidStreamDomainStr(String streamDomainStr)
Internal user, is stream name valid for HTTP session |
void |
lockRepeaterStreams(java.util.List<String> streamNames,
String liveStreamPacketizer,
String liveStreamRepeater,
String streamTypeStr)
Internal user, lock in reapter streams |
void |
putFileInfo(String streamName,
com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo fileInfo)
Set the file information |
void |
putStreamNameParts(String streamName,
com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts)
Add stream name to stream name parts |
void |
rejectSession()
Reject this HTTP session. |
void |
removeStreamDomainStr(String streamDomainStr)
Internal user, remove stream name |
void |
setAcceptSession(boolean acceptSession)
Set to false to reject session |
void |
setActive(boolean isActive)
Set session active |
void |
setAppInstance(IApplicationInstance appInstance)
Set the application instance associated with this HTTP session |
void |
setCookieStr(String cookieStr)
Set cookie string |
void |
setHTTPStreamerAdapter(IHTTPStreamerAdapter httpStreamerAdapter)
Set the HTTP streaming adapter associated with this HTTP session |
void |
setIpAddress(String ipAddress)
Set the IP address |
void |
setLiveStreamingPacketizer(String liveStreamingPacketizer)
Set the live stream packetizer name |
void |
setPlayLogged(boolean isPlayLogged)
true, if play has been logged |
void |
setQueryStr(String queryStr)
Set query string |
void |
setReferrer(String referrer)
Set referrer |
void |
setServerIp(String serverIp)
Set server IP address |
void |
setServerPort(int serverPort)
Set server port |
void |
setSessionId(String sessionId)
Set session id |
void |
setSessionProtocol(int sessionProtocol)
Set protocol, see SESSIONPROTOCOL_* |
void |
setSessionTimeout(int sessionTimeout)
Set the session timeout for this session (milliseconds) |
void |
setSessionType(int sessionType)
Set session type: see SESSIONTYPE_* |
void |
setStream(IMediaStream stream)
Set the IMediaStream associated with this HTTP session |
void |
setStreamExt(String streamExt)
Set stream extension |
void |
setStreamName(String streamName)
Set stream name |
void |
setStreamPosition(long streamPosition)
Set stream position (will not cause seek) |
void |
setTimeoutSession(boolean timeoutSession)
Set is session timeout. |
void |
setUri(String uri)
Set the URI associated with initial request |
void |
setUserAgent(String userAgent)
Set user agent |
void |
setVHost(IVHost vhost)
Set vhost |
void |
shutdown()
Called then the HTTP session is shutting down |
void |
touch(long timecode)
Touch this session to keep it active. |
void |
updateLoggingValues()
Internal user, update logging values |
| Field Detail |
|---|
static final int SESSIONPROTOCOL_COUNT
static final int SESSIONPROTOCOL_CUPERTINOSTREAMING
static final int SESSIONPROTOCOL_SANJOSESTREAMING
static final int SESSIONPROTOCOL_SMOOTHSTREAMING
static final int SESSIONPROTOCOL_UNKNOWN
static final int SESSIONPROTOCOL_WEBMSTREAMING
static final int SESSIONTYPE_LIVE
static final int SESSIONTYPE_UNKNOWN
static final int SESSIONTYPE_VOD
| Method Detail |
|---|
void acceptSession()
void addIOPerformance(IOPerformanceCounter totalIOPerformanceResult)
totalIOPerformanceResult - IO performancevoid addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)
totalIOPerformanceResult - IO performancevoid addStreamDomainStr(String streamDomainStr)
streamDomainStr - stream namevoid addStreamDomainStrs(java.util.List<String> streamNames)
streamNames - stream namesboolean checkAndSetPlayLogged()
void clearLoggingValues()
boolean containsStreamDomainStr(String streamDomainStr)
streamDomainStr - stream name
boolean containsStreamNameParts(String streamName)
streamName - stream name
IApplicationInstance getAppInstance()
com.wowza.wms.client.ConnectionHolder getConnectionHolder()
String getCookieStr()
ElapsedTimer getElapsedTime()
com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo getFileInfo(String streamName)
streamName - stream name
IHTTPStreamerAdapter getHTTPStreamerAdapter()
IOPerformanceCounter getIOPerformanceCounter()
String getIpAddress()
String getLiveStreamingPacketizer()
Object getLock()
WMSProperties getProperties()
String getQueryStr()
String getReferrer()
String getServerIp()
int getServerPort()
String getSessionId()
int getSessionProtocol()
int getSessionTimeout()
int getSessionType()
IMediaStream getStream()
String getStreamExt()
String getStreamName()
com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts getStreamNameParts(String streamName)
streamName - stream name
long getStreamPosition()
String getTimeRunning()
double getTimeRunningSeconds()
String getUri()
String getUserAgent()
IVHost getVHost()
boolean isAcceptSession()
boolean isActive()
boolean isFileInfo(String streamName)
streamName - stream name
boolean isPlayLogged()
boolean isTimeout(long timecode)
timecode - last touch - System.currentTimeMillis();
boolean isTimeoutSession()
boolean isValidated()
boolean isValidStreamDomainStr(String streamDomainStr)
streamDomainStr - stream name
void lockRepeaterStreams(java.util.List<String> streamNames,
String liveStreamPacketizer,
String liveStreamRepeater,
String streamTypeStr)
streamNames - list of stream namesliveStreamPacketizer - live stream packetizer nameliveStreamRepeater - live repeater namestreamTypeStr - stream type
void putFileInfo(String streamName,
com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo fileInfo)
streamName - stream namefileInfo - file information
void putStreamNameParts(String streamName,
com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts)
streamName - stream namestreamNameParts - stream name partsvoid rejectSession()
void removeStreamDomainStr(String streamDomainStr)
streamDomainStr - stream namevoid setAcceptSession(boolean acceptSession)
acceptSession - false to reject sessionvoid setActive(boolean isActive)
isActive - session activevoid setAppInstance(IApplicationInstance appInstance)
appInstance - application instance associated with this HTTP sessionvoid setCookieStr(String cookieStr)
cookieStr - cookie stringvoid setHTTPStreamerAdapter(IHTTPStreamerAdapter httpStreamerAdapter)
httpStreamerAdapter - HTTP streaming adaptervoid setIpAddress(String ipAddress)
ipAddress - IP addressvoid setLiveStreamingPacketizer(String liveStreamingPacketizer)
liveStreamingPacketizer - live stream packetizer namevoid setPlayLogged(boolean isPlayLogged)
isPlayLogged - true, if play has been loggedvoid setQueryStr(String queryStr)
queryStr - query stringvoid setReferrer(String referrer)
referrer - referrervoid setServerIp(String serverIp)
serverIp - server IP addressvoid setServerPort(int serverPort)
serverPort - server portvoid setSessionId(String sessionId)
sessionId - session idvoid setSessionProtocol(int sessionProtocol)
sessionProtocol - protocol, see SESSIONPROTOCOL_*void setSessionTimeout(int sessionTimeout)
sessionTimeout - session timeout for this session (milliseconds)void setSessionType(int sessionType)
sessionType - session type: see SESSIONTYPE_*void setStream(IMediaStream stream)
stream - IMediaStream associated with this HTTP sessionvoid setStreamExt(String streamExt)
streamExt - stream extensionvoid setStreamName(String streamName)
streamName - stream namevoid setStreamPosition(long streamPosition)
streamPosition - stream positionvoid setTimeoutSession(boolean timeoutSession)
timeoutSession - true if this session is timed outvoid setUri(String uri)
uri - URI associated with initial requestvoid setUserAgent(String userAgent)
userAgent - user agentvoid setVHost(IVHost vhost)
vhost - vhostvoid shutdown()
void touch(long timecode)
timecode - timecode of touch - System.currentTimeMillis();void updateLoggingValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||