Package com.wowza.wms.pushpublish.model
Class PushPublishHTTPYouTubeBase
- Object
-
- com.wowza.wms.pushpublish.model.PushPublishBase
-
- com.wowza.wms.pushpublish.model.PushPublishHTTPBase
-
- com.wowza.wms.pushpublish.model.PushPublishHTTPYouTubeBase
-
- All Implemented Interfaces:
IPushPublish
public abstract class PushPublishHTTPYouTubeBase extends PushPublishHTTPBase
-
-
Field Summary
Fields Modifier and Type Field Description static Class<PushPublishHTTPYouTubeBase>
CLASS
static String
CLASSNAME
protected int
connectionTimeout
protected boolean
fakePosts
protected String
httpIngressDomainOverride
protected String
httpIngressDomainSuffix
protected String
httpPlaybackDomainOverride
protected String
httpPlaybackDomainSuffix
protected int
httpWriterLogOptions
protected int
maxRetries
protected String
protocol
protected int
readWriteTimeout
protected boolean
reuseSockets
protected boolean
sendToBackupServer
protected String
userAgent
static String
YOUTUBE_DEFAULT_HOSTID
protected String
youtubeEventName
protected String
youtubeHostId
protected String
youtubePlaybackURLPrefix
protected String
youtubeProtocolName
protected String
youtubeStreamId
-
Fields inherited from class com.wowza.wms.pushpublish.model.PushPublishHTTPBase
CACHE_CONTROL_FACTOR, CACHE_CONTROL_HEADER, CACHE_CONTROL_HEADER_KEY, CACHE_CONTROL_HEADER_NONE, CACHE_CONTROL_MEDIA_DEFAULT, httpLogManifests, httpManifestDebug, INDETERMINATE_PLAYLIST_COUNT, maxSegmentCountFromMap, maxSegmentCountFromPacketizer, MIN_PLAYLIST_COUNT, playlistAcrossSessions, playlistBaseUrl, playlistCountFromMap, playlistCountFromPacketizer, playlistCrossName, playlistDurationFromMap, playlistMap, playlistName, playlistTimeout, relativePlaylists
-
Fields inherited from class com.wowza.wms.pushpublish.model.PushPublishBase
appInstance, className, DESTINATION_BAK, DESTINATION_PRI, DESTINATION_RED, destinationName, destinationServer, dstStreamName, entryName, hostname, inetAddr, isAdaptiveStreaming, isExternalRedundancy, logger, mImplementation, myMap, password, playbackHostname, port, profile, properties, pushPublishSession, pushPublishStreamDebug, pushPublishType, reconnectWaitTime, sendingPerformance, srcStream, srcStreamName, totalIOPerformance2Last, totalIOPerformanceLast, userName
-
Fields inherited from interface com.wowza.wms.pushpublish.model.IPushPublish
CONNECTED_STATE_CONNECTED, CONNECTED_STATE_CONNECTING, CONNECTED_STATE_NOT_CONNECTED, CONNECTED_STATE_WAITING, PUSHPUBLISH_TYPE_CUPERTINO, PUSHPUBLISH_TYPE_MPEGDASH, PUSHPUBLISH_TYPE_NOTIFY_PACKET, PUSHPUBLISH_TYPE_RTMP, PUSHPUBLISH_TYPE_RTP, PUSHPUBLISH_TYPE_RTP_BUFFERED, PUSHPUBLISH_TYPE_SANJOSE, PUSHPUBLISH_TYPE_SRT, PUSHPUBLISH_TYPE_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description PushPublishHTTPYouTubeBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConnectionTimeout()
String
getDestinationAdaptiveGroupPath(String groupName)
String
getDestinationAdaptiveGroupURL(String groupName)
String
getDestinationDomain()
String
getDestinationPath()
int
getDestinationPort()
String
getDestinationURL()
int
getMaxRetries()
int
getReadWriteTimeout()
protected String
getResolvedYouTubeStreamId()
String
getUserAgent()
String
getYouTubeEventName()
String
getYouTubeHostId()
String
getYouTubePlaybackAdaptiveGroupURL(String groupName)
String
getYouTubePlaybackDomain()
String
getYouTubePlaybackURL()
String
getYouTubePlaybackURLPrefix()
String
getYouTubeStreamId()
void
init(IApplicationInstance appInstance, String streamName, IMediaStream stream, java.util.Map<String,String> profileData, java.util.Map<String,String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean streamDebug)
Inits the instance.boolean
isDeleteSentChunks()
boolean
isDestinationSecure()
boolean
isFakePosts()
boolean
isInRedundancyPair()
boolean
isReuseSockets()
boolean
isSendToBackupServer()
void
load(java.util.HashMap<String,String> dataMap)
Loads map and profile parametersvoid
resetConnection()
void
setConnectionTimeout(int connectionTimeout)
void
setDeleteSentChunks(boolean deleteSentChunks)
void
setFakePosts(boolean fakePosts)
void
setMaxRetries(int maxRetries)
void
setReadWriteTimeout(int readTimeout)
void
setReuseSockets(boolean reuseSockets)
void
setSendToBackupServer(boolean sendToBackupServer)
void
setUserAgent(String userAgent)
void
setYouTubeEventName(String youtubeEventName)
void
setYouTubeHostId(String youtubeHostId)
void
setYouTubePlaybackURLPrefix(String youtubePlaybackURLPrefix)
void
setYouTubeStreamId(String youtubeStreamId)
-
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishHTTPBase
getAdaptiveGroupName, getMaxSegmentCount, getPlaylistBaseUrl, getPlaylistCount, getPlaylistMap, getPlaylistTimeout, isInAdaptiveGroup, isLogDebugManifest, isPlaylistAcrossSessions, isRelativePlaylists, logDebugManifest, setAdaptiveGroupName, setLiveStreamPacketizer, setMaxSegmentCountFromMap, setMaxSegmentCountFromPacketizer, setPlaylistAcrossSessions, setPlaylistBaseUrl, setPlaylistCountFromMap, setPlaylistCountFromPacketizer, setPlaylistTimeout, setRelativePlaylists
-
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishBase
add, addIOPerformance2, clearLoggingValues, createPushPublishSession, getAppInstance, getBandwidth, getBaseParams, getContextStr, getDestinationID, getDestinationName, getDestinationServer, getDstStreamName, getEntryName, getHostname, getImplementation, getInetAddr, getMap, getMessagesOutBytes, getMessagesOutCount, getPassword, getPlaybackHostname, getPort, getProfile, getProperties, getPushPublishType, getReconnectWaitTime, getSrcStream, getSrcStreamName, getUserName, getWowzaStreamingEngineVersionStr, incrementMessagesOut, isAdaptiveStreaming, isDebugLog, isExternalRedundancy, logDebug, logError, logError, logError, logInfo, logWarn, resolveHostName, setAdaptiveStreaming, setAdaptiveStreaming, setAppInstance, setDebugLog, setDestinationName, setDestinationServer, setDestinationServer, setDstStreamName, setEntryName, setExternalRedundancy, setExternalRedundancy, setHost, setHostname, setImplementation, setInetAddr, setPassword, setPlaybackHostname, setPort, setPort, setProfile, setReconnectWaitTime, setSrcStream, setSrcStreamName, setStreamName, setUserName, updateLoggingValues, updateUsageTracker
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wowza.wms.pushpublish.model.IPushPublish
connect, disconnect, getConnectedState, getMessagesAttemptedCount, getMessagesFailedCount, getMessagesRetriedCount
-
-
-
-
Field Detail
-
CLASS
public static final Class<PushPublishHTTPYouTubeBase> CLASS
-
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
YOUTUBE_DEFAULT_HOSTID
public static final String YOUTUBE_DEFAULT_HOSTID
- See Also:
- Constant Field Values
-
httpIngressDomainSuffix
protected String httpIngressDomainSuffix
-
httpPlaybackDomainSuffix
protected String httpPlaybackDomainSuffix
-
youtubePlaybackURLPrefix
protected String youtubePlaybackURLPrefix
-
youtubeProtocolName
protected String youtubeProtocolName
-
httpIngressDomainOverride
protected String httpIngressDomainOverride
-
httpPlaybackDomainOverride
protected String httpPlaybackDomainOverride
-
maxRetries
protected int maxRetries
-
connectionTimeout
protected int connectionTimeout
-
readWriteTimeout
protected int readWriteTimeout
-
httpWriterLogOptions
protected int httpWriterLogOptions
-
protocol
protected String protocol
-
youtubeStreamId
protected String youtubeStreamId
-
youtubeEventName
protected String youtubeEventName
-
sendToBackupServer
protected boolean sendToBackupServer
-
fakePosts
protected boolean fakePosts
-
reuseSockets
protected boolean reuseSockets
-
youtubeHostId
protected String youtubeHostId
-
userAgent
protected String userAgent
-
-
Method Detail
-
init
public void init(IApplicationInstance appInstance, String streamName, IMediaStream stream, java.util.Map<String,String> profileData, java.util.Map<String,String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean streamDebug)
Description copied from class:PushPublishHTTPBase
Inits the instance.- Specified by:
init
in interfaceIPushPublish
- Overrides:
init
in classPushPublishHTTPBase
- Parameters:
appInstance
- the app instancestreamName
- the source stream nameprofileData
- the profile paramsmaps
- the map entry paramsstreamDebug
- stream debug flag
-
getResolvedYouTubeStreamId
protected String getResolvedYouTubeStreamId()
-
getDestinationDomain
public String getDestinationDomain()
-
isSendToBackupServer
public boolean isSendToBackupServer()
-
setSendToBackupServer
public void setSendToBackupServer(boolean sendToBackupServer)
-
isInRedundancyPair
public boolean isInRedundancyPair()
-
getYouTubeStreamId
public String getYouTubeStreamId()
-
setYouTubeStreamId
public void setYouTubeStreamId(String youtubeStreamId)
-
getYouTubePlaybackDomain
public String getYouTubePlaybackDomain()
-
getDestinationPath
public String getDestinationPath()
-
getDestinationURL
public String getDestinationURL()
-
getDestinationAdaptiveGroupPath
public String getDestinationAdaptiveGroupPath(String groupName)
-
getDestinationAdaptiveGroupURL
public String getDestinationAdaptiveGroupURL(String groupName)
-
getYouTubePlaybackAdaptiveGroupURL
public String getYouTubePlaybackAdaptiveGroupURL(String groupName)
-
getYouTubePlaybackURL
public String getYouTubePlaybackURL()
-
resetConnection
public void resetConnection()
-
getYouTubeHostId
public String getYouTubeHostId()
-
setYouTubeHostId
public void setYouTubeHostId(String youtubeHostId)
-
getYouTubeEventName
public String getYouTubeEventName()
-
setYouTubeEventName
public void setYouTubeEventName(String youtubeEventName)
-
isDeleteSentChunks
public boolean isDeleteSentChunks()
-
setDeleteSentChunks
public void setDeleteSentChunks(boolean deleteSentChunks)
-
getYouTubePlaybackURLPrefix
public String getYouTubePlaybackURLPrefix()
-
setYouTubePlaybackURLPrefix
public void setYouTubePlaybackURLPrefix(String youtubePlaybackURLPrefix)
-
isFakePosts
public boolean isFakePosts()
-
setFakePosts
public void setFakePosts(boolean fakePosts)
-
isReuseSockets
public boolean isReuseSockets()
-
setReuseSockets
public void setReuseSockets(boolean reuseSockets)
-
getConnectionTimeout
public int getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
-
getReadWriteTimeout
public int getReadWriteTimeout()
-
setReadWriteTimeout
public void setReadWriteTimeout(int readTimeout)
-
getMaxRetries
public int getMaxRetries()
-
setMaxRetries
public void setMaxRetries(int maxRetries)
-
getUserAgent
public String getUserAgent()
-
setUserAgent
public void setUserAgent(String userAgent)
-
getDestinationPort
public int getDestinationPort()
-
isDestinationSecure
public boolean isDestinationSecure()
-
load
public void load(java.util.HashMap<String,String> dataMap)
Description copied from class:PushPublishHTTPBase
Loads map and profile parameters- Overrides:
load
in classPushPublishHTTPBase
- Parameters:
dataMap
- the data map
-
-