IPushPublish, IPushPublishHTTPGroupMember, IPushPublishHTTPOutputBuilder, IPushPublishHTTPCupertinopublic class PushPublishHTTPCupertinoCloudStorageHandler extends PushPublishHTTPCupertino
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
backup |
|
protected boolean |
cloudStorageCleanBucket |
|
protected com.wowza.wms.pushpublish.cloudstorage.IPushPublishCloudStorageController |
cloudStorageController |
|
protected WMSProperties |
cloudStorageControllerProps |
|
protected String |
cloudStorageProviderName |
|
protected Boolean |
cloudStorageTransportDebug |
|
protected long |
playlistDuration |
The playlist duration from the map entry.
|
protected boolean |
useRandomSession |
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_UNKNOWNPUSHER_ERROR_LIVEPACKETIZER_NOT_CONFIGURED, PUSHER_ERROR_RENDITIONS_MISCONFIGUREDappInstance, 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, userNameCACHE_CONTROL_FACTOR, CACHE_CONTROL_HEADER, CACHE_CONTROL_HEADER_KEY, CACHE_CONTROL_HEADER_NONE, CACHE_CONTROL_MEDIA_DEFAULT, httpLogManifests, httpManifestDebug, INDETERMINATE_PLAYLIST_COUNT, MIN_PLAYLIST_COUNT, playlistAcrossSessions, playlistCountFromMap, playlistCountFromPacketizer, playlistCrossName, playlistDurationFromMap, playlistMap, playlistName, playlistTimeout, relativePlaylistsaddEndListOnDisconnect, chunkDurationTarget, CHUNKLISTNAME_AUDIOONLY, CHUNKLISTNAME_AUDIOVIDEO, CHUNKLISTNAME_KEYFRAMEONLY, CHUNKLISTNAME_VIDEOONLY, CHUNKLISTNAMES, keepMediaSegmentDataAfterSending, liveStreamPacketizerCupertino, PLAYLISTNAME, pusher, RENDITION_AUDIOONLY, RENDITION_AUDIOVIDEO, RENDITION_KEYFRAMEONLY, RENDITION_VIDEOONLY, RENDITIONINDEX_AUDIOONLY, RENDITIONINDEX_AUDIOVIDEO, RENDITIONINDEX_COUNT, RENDITIONINDEX_KEYFRAMEONLY, RENDITIONINDEX_VIDEOONLY| Constructor | Description |
|---|---|
PushPublishHTTPCupertinoCloudStorageHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
connect() |
|
int |
deleteMediaSegment(MediaSegmentModel mediaSegment) |
Deletes the media (chunk) at the destination URI.
|
protected String |
getDestinationStreamName() |
|
protected String |
getDestinationStreamPath(MediaSegmentModel mediaSegment) |
|
protected String |
getDestinationStreamPath(PlaylistModel playlist) |
|
String |
getDestionationLogData() |
Get a JSON formatted string of data that represents the destination to include with the connect/disconnect logging
|
protected java.net.URI |
getMasterPlaylistURI(String streamOrGroupName) |
|
protected String |
getMediaPlaylistPlayBackPath() |
|
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 |
isSendToBackupServer() |
Is this implementation sending to a backup server
|
void |
load(java.util.HashMap<String,String> dataMap) |
Loads map and profile parameters
|
boolean |
outputClose() |
Close the destination (if needed).
|
boolean |
outputOpen() |
Open the destination (if needed) in preparation of having
one or more items (playlists/media segments) pushed to it
|
int |
sendGroupMasterPlaylist(String groupName,
PlaylistModel playlist) |
Sends a group master playlist to the destination.
|
int |
sendMasterPlaylist(PlaylistModel playlist) |
Sends the master playlist to the destination.
|
int |
sendMediaPlaylist(PlaylistModel playlist) |
Sends the media playlist to the destination.
|
int |
sendMediaSegment(MediaSegmentModel mediaSegment) |
Sends the media (chunk) to the destination; media provided as a fragment list.
|
protected int |
sendPlaylist(String parentMethod,
java.net.URI uri,
PlaylistModel playlist) |
|
void |
setChunkDurationTarget() |
|
void |
setSendToBackupServer(boolean backup) |
Setup to send to a backup destination
|
boolean |
updateGroupMasterPlaylistPlaybackURI(String groupName,
PlaylistModel masterPlaylist) |
Get the group master playlist URI for the given group master playlist file that a player would use to consume the content from the CDN
Example: "http://myHost.com/myPath/myGroup/playlist.m3u8"
|
boolean |
updateMasterPlaylistPlaybackURI(PlaylistModel playlist) |
update the master playlist URI for the provided playlist model that a player would use to consume the content from the CDN
Example: "http://myHost.com/myPath/myStream/playlist.m3u8"
where "playlist.m3u8" is the value given for masterPlaylistFilename
|
boolean |
updateMediaPlaylistPlaybackURI(PlaylistModel playlist) |
update/set the media playlist (chunklist) URI for the provided media playlist file that a player would use to consume the content from the CDN
Example: "http://myHost.com/myPath/myStream/chunklist.m3u8"
where "chunklist.m3u8" is the value given for mediaPlaylistFilename
|
boolean |
updateMediaSegmentPlaybackURI(MediaSegmentModel mediaSegment) |
set the media URI for the given media (chunk) file that a player would use to consume the content from the CDN
Example: "http://myHost.com/myPath/myStream/media_1.ts"
where "media_1.ts" is the value given for mediaFilename
|
getAdaptiveGroupName, isInAdaptiveGroup, isLogDebugManifestgetAppInstance, getDstStreamName, getSrcStreamName, isDebugLogclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addIOPerformance2, clearLoggingValues, createPushPublishSession, getAppInstance, getBandwidth, getBaseParams, 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, 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, updateUsageTrackergetAdaptiveGroupName, getCachecontrol, getPlaylistMap, getPlaylistTimeout, isInAdaptiveGroup, isLogDebugManifest, isPlaylistAcrossSessions, isRelativePlaylists, logDebugManifest, setAdaptiveGroupName, setCachecontrol, setPlaylistAcrossSessions, setPlaylistCountFromMap, setPlaylistCountFromPacketizer, setPlaylistTimeout, setRelativePlaylistsadaptiveGroupPlaylistNeedsUpdating, addTagToPlaylist, addTagToPlaylist, createGroupPlaylist, createMasterPlaylist, createMediaPlaylist, createMediaSegmentModel, createOutputItem, createTag, disconnect, disconnect, error, getChunkDurationTarget, getConnectedState, getContextStr, getGroupPlaylistRenditionDescription, getLastChunkId, getLiveStreamPacketizerName, getMediaPlaylistPlaybackURL, getMessagesAttemptedCount, getMessagesFailedCount, getMessagesRetriedCount, getPacketizerLock, getPlaylistCount, getPlaylistProperties, getRandomSessionStr, getRenditionsStr, isGroupReady, isInRedundancyPair, outputSend, printPlaylist, resetConnection, resetNewPacketizer, sendGroupPlaylist, setLiveStreamPacketizer, setRenditionsStr, writeTagToStringprotected boolean backup
protected boolean cloudStorageCleanBucket
protected com.wowza.wms.pushpublish.cloudstorage.IPushPublishCloudStorageController cloudStorageController
protected WMSProperties cloudStorageControllerProps
protected String cloudStorageProviderName
protected Boolean cloudStorageTransportDebug
protected long playlistDuration
protected boolean useRandomSession
public PushPublishHTTPCupertinoCloudStorageHandler()
throws com.wowza.wms.server.LicensingException
com.wowza.wms.server.LicensingExceptionpublic void connect()
connect in interface IPushPublishconnect in class PushPublishHTTPCupertinopublic int deleteMediaSegment(MediaSegmentModel mediaSegment)
IPushPublishHTTPCupertinomediaSegment - the media destination URIprotected String getDestinationStreamName()
protected String getDestinationStreamPath(MediaSegmentModel mediaSegment)
protected String getDestinationStreamPath(PlaylistModel playlist)
public String getDestionationLogData()
PushPublishHTTPCupertinogetDestionationLogData in interface IPushPublishHTTPCupertinogetDestionationLogData in class PushPublishHTTPCupertinoprotected java.net.URI getMasterPlaylistURI(String streamOrGroupName)
throws java.net.URISyntaxException
java.net.URISyntaxExceptionprotected String getMediaPlaylistPlayBackPath()
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)
PushPublishHTTPBaseinit in interface IPushPublishinit in class PushPublishHTTPCupertinoappInstance - the app instancestreamName - the source stream nameprofileData - the profile paramsmaps - the map entry paramsstreamDebug - stream debug flagpublic boolean isSendToBackupServer()
IPushPublishHTTPCupertinopublic void load(java.util.HashMap<String,String> dataMap)
PushPublishHTTPBaseload in class PushPublishHTTPCupertinodataMap - the data mappublic boolean outputClose()
IPushPublishHTTPCupertinopublic boolean outputOpen()
IPushPublishHTTPCupertinopublic int sendGroupMasterPlaylist(String groupName,
PlaylistModel playlist)
IPushPublishHTTPCupertinogroupName - the group nameplaylist - the group master playlist modelpublic int sendMasterPlaylist(PlaylistModel playlist)
IPushPublishHTTPCupertinoplaylist - the master playlist modelpublic int sendMediaPlaylist(PlaylistModel playlist)
IPushPublishHTTPCupertinoplaylist - the media playlist modelpublic int sendMediaSegment(MediaSegmentModel mediaSegment)
IPushPublishHTTPCupertinomediaSegment - the media file in fragment list formprotected int sendPlaylist(String parentMethod,
java.net.URI uri,
PlaylistModel playlist)
public void setChunkDurationTarget()
public void setSendToBackupServer(boolean backup)
IPushPublishHTTPCupertinopublic boolean updateGroupMasterPlaylistPlaybackURI(String groupName,
PlaylistModel masterPlaylist)
IPushPublishHTTPCupertinogroupName - group namemasterPlaylist - master group playlistpublic boolean updateMasterPlaylistPlaybackURI(PlaylistModel playlist)
IPushPublishHTTPCupertinoplaylist - the master playlist model to update the URI inpublic boolean updateMediaPlaylistPlaybackURI(PlaylistModel playlist)
IPushPublishHTTPCupertinoplaylist - to update the uri inpublic boolean updateMediaSegmentPlaybackURI(MediaSegmentModel mediaSegment)
IPushPublishHTTPCupertinomediaSegment - to update the uri of