Class PushPublishHTTPCupertinoCloudStorageHandler2
- Object
- 
- com.wowza.wms.pushpublish.model.PushPublishBase
- 
- com.wowza.wms.pushpublish.model.PushPublishHTTPBase
- 
- com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertino
- 
- com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoCloudStorageHandler
- 
- com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoCloudStorageHandler2
 
 
 
 
 
- 
- All Implemented Interfaces:
- IPushPublish,- IPushPublishHTTPGroupMember,- IPushPublishHTTPOutputBuilder,- IPushPublishHTTPCupertino
 - Direct Known Subclasses:
- PushPublishHTTPCupertinoWowzaVideoHandler
 
 public class PushPublishHTTPCupertinoCloudStorageHandler2 extends PushPublishHTTPCupertinoCloudStorageHandler 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classPushPublishHTTPCupertinoCloudStorageHandler2.CreateVODChunklistThreadclassPushPublishHTTPCupertinoCloudStorageHandler2.deleteMediaSegmentsThreadclassPushPublishHTTPCupertinoCloudStorageHandler2.deleteMediaSegmentThreadclassPushPublishHTTPCupertinoCloudStorageHandler2.sendVODChunklistThreadclassPushPublishHTTPCupertinoCloudStorageHandler2.TouchPlaylistTimer
 - 
Field SummaryFields Modifier and Type Field Description static StringAES128_KEYstatic StringAES128_KEY_FILE_NAMEstatic StringENABLE_VOD_PROPstatic StringMODULE_NAMEstatic StringMODULE_VERSIONstatic java.util.HashMap<String,Boolean>streamDisconnectingstatic StringUPTIME_ID_PROPstatic StringVOD_PLAYLIST_COUNT- 
Fields inherited from class com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoCloudStorageHandlerbackup, cloudStorageCleanBucket, cloudStorageController, cloudStorageControllerProps, cloudStorageProviderName, cloudStorageTransportDebug, playlistDuration, useRandomSession
 - 
Fields inherited from class com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoaddEndListOnDisconnect, 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
 - 
Fields inherited from class com.wowza.wms.pushpublish.model.PushPublishHTTPBaseCACHE_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.PushPublishBaseappInstance, 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.IPushPublishCONNECTED_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
 - 
Fields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishHTTPOutputBuilderPUSHER_ERROR_LIVEPACKETIZER_NOT_CONFIGURED, PUSHER_ERROR_RENDITIONS_MISCONFIGURED
 
- 
 - 
Constructor SummaryConstructors Constructor Description PushPublishHTTPCupertinoCloudStorageHandler2()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()intdeleteMediaSegment(MediaSegmentModel mediaSegment)Deletes the media (chunk) at the destination URI.voiddisconnect(boolean hard)protected StringgetDestinationStreamName()protected StringgetDestinationStreamPath(MediaSegmentModel mediaSegment)StringgetRandomSessionStr()Gets a random session string that lives for the life time of the currently published stream.static byte[]hex2Bin(String str)voidinit(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.voidload(java.util.HashMap<String,String> dataMap)Loads map and profile parametersintsendGroupMasterPlaylist(String groupName, PlaylistModel playlist)Sends a group master playlist to the destination.intsendMediaPlaylist(PlaylistModel playlist)Sends the media playlist to the destination.intsuperDeleteMediaSegment(MediaSegmentModel mediaSegment)intsuperSendPlaylist(String parentMethod, java.net.URI uri, PlaylistModel playlist)- 
Methods inherited from class com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoCloudStorageHandlergetDestinationStreamPath, getDestionationLogData, getMasterPlaylistURI, getMediaPlaylistPlayBackPath, isSendToBackupServer, outputClose, outputOpen, sendMasterPlaylist, sendMediaSegment, sendPlaylist, setChunkDurationTarget, setSendToBackupServer, updateGroupMasterPlaylistPlaybackURI, updateMasterPlaylistPlaybackURI, updateMediaPlaylistPlaybackURI, updateMediaSegmentPlaybackURI
 - 
Methods inherited from class com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoadaptiveGroupPlaylistNeedsUpdating, addTagToPlaylist, addTagToPlaylist, createGroupPlaylist, createMasterPlaylist, createMediaPlaylist, createMediaSegmentModel, createOutputItem, createTag, disconnect, error, getChunkDurationTarget, getConnectedState, getContextStr, getGroupPlaylistRenditionDescription, getLastChunkId, getLiveStreamPacketizerName, getMediaPlaylistPlaybackURL, getMessagesAttemptedCount, getMessagesFailedCount, getMessagesRetriedCount, getPacketizerLock, getPlaylistCount, getPlaylistProperties, getRenditionsStr, isGroupReady, isInRedundancyPair, outputSend, printPlaylist, resetConnection, resetNewPacketizer, sendGroupPlaylist, setLiveStreamPacketizer, setRenditionsStr, writeTagToString
 - 
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishHTTPBasegetAdaptiveGroupName, getMaxSegmentCount, getPlaylistBaseUrl, getPlaylistMap, getPlaylistTimeout, isInAdaptiveGroup, isLogDebugManifest, isPlaylistAcrossSessions, isRelativePlaylists, logDebugManifest, setAdaptiveGroupName, setMaxSegmentCountFromMap, setMaxSegmentCountFromPacketizer, setPlaylistAcrossSessions, setPlaylistBaseUrl, setPlaylistCountFromMap, setPlaylistCountFromPacketizer, setPlaylistTimeout, setRelativePlaylists
 - 
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishBaseadd, 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, 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.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.wowza.wms.pushpublish.model.IPushPublishHTTPGroupMembergetAdaptiveGroupName, isInAdaptiveGroup, isLogDebugManifest
 - 
Methods inherited from interface com.wowza.wms.pushpublish.model.IPushPublishHTTPOutputBuildergetAppInstance, getDstStreamName, getSrcStreamName, isDebugLog
 
- 
 
- 
- 
- 
Field Detail- 
MODULE_VERSIONpublic static String MODULE_VERSION 
 - 
MODULE_NAMEpublic static String MODULE_NAME 
 - 
UPTIME_ID_PROPpublic static String UPTIME_ID_PROP 
 - 
ENABLE_VOD_PROPpublic static String ENABLE_VOD_PROP 
 - 
VOD_PLAYLIST_COUNTpublic static String VOD_PLAYLIST_COUNT 
 - 
AES128_KEYpublic static String AES128_KEY 
 - 
AES128_KEY_FILE_NAMEpublic static String AES128_KEY_FILE_NAME 
 - 
streamDisconnectingpublic static java.util.HashMap<String,Boolean> streamDisconnecting 
 
- 
 - 
Method Detail- 
initpublic 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:PushPublishHTTPBaseInits the instance.- Specified by:
- initin interface- IPushPublish
- Overrides:
- initin class- PushPublishHTTPCupertinoCloudStorageHandler
- Parameters:
- appInstance- the app instance
- streamName- the source stream name
- profileData- the profile params
- maps- the map entry params
- streamDebug- stream debug flag
 
 - 
loadpublic void load(java.util.HashMap<String,String> dataMap) Description copied from class:PushPublishHTTPBaseLoads map and profile parameters- Overrides:
- loadin class- PushPublishHTTPCupertinoCloudStorageHandler
- Parameters:
- dataMap- the data map
 
 - 
getDestinationStreamNameprotected String getDestinationStreamName() - Overrides:
- getDestinationStreamNamein class- PushPublishHTTPCupertinoCloudStorageHandler
 
 - 
superSendPlaylistpublic int superSendPlaylist(String parentMethod, java.net.URI uri, PlaylistModel playlist)
 - 
superDeleteMediaSegmentpublic int superDeleteMediaSegment(MediaSegmentModel mediaSegment) 
 - 
deleteMediaSegmentpublic int deleteMediaSegment(MediaSegmentModel mediaSegment) Description copied from interface:IPushPublishHTTPCupertinoDeletes the media (chunk) at the destination URI. Default implementation assumes the URI uses the HTTP schema and deletes the media using the WSE HTTPByteWriter. Implementations not using the HTTP schema or not wanting to use the default HTTPByteWriter should override the default method.- Specified by:
- deleteMediaSegmentin interface- IPushPublishHTTPCupertino
- Overrides:
- deleteMediaSegmentin class- PushPublishHTTPCupertinoCloudStorageHandler
- Parameters:
- mediaSegment- the media destination URI
- Returns:
- number of bytes sent if successful (less than zero implies the implementation does not support, 0 is a failure, > 0 is success)
 
 - 
hex2Binpublic static byte[] hex2Bin(String str) 
 - 
sendGroupMasterPlaylistpublic int sendGroupMasterPlaylist(String groupName, PlaylistModel playlist)Description copied from interface:IPushPublishHTTPCupertinoSends a group master playlist to the destination.- Specified by:
- sendGroupMasterPlaylistin interface- IPushPublishHTTPCupertino
- Overrides:
- sendGroupMasterPlaylistin class- PushPublishHTTPCupertinoCloudStorageHandler
- Parameters:
- groupName- the group name
- playlist- the group master playlist model
- Returns:
- number of bytes sent to output
 
 - 
sendMediaPlaylistpublic int sendMediaPlaylist(PlaylistModel playlist) Description copied from interface:IPushPublishHTTPCupertinoSends the media playlist to the destination.- Specified by:
- sendMediaPlaylistin interface- IPushPublishHTTPCupertino
- Overrides:
- sendMediaPlaylistin class- PushPublishHTTPCupertinoCloudStorageHandler
- Parameters:
- playlist- the media playlist model
- Returns:
- number of bytes sent to output (less than zero implies the implementation does not support, 0 is a failure, > 0 is success)
 
 - 
getDestinationStreamPathprotected String getDestinationStreamPath(MediaSegmentModel mediaSegment) - Overrides:
- getDestinationStreamPathin class- PushPublishHTTPCupertinoCloudStorageHandler
 
 - 
getRandomSessionStrpublic String getRandomSessionStr() Description copied from class:PushPublishHTTPCupertinoGets a random session string that lives for the life time of the currently published stream. If the stream times out or drops for one reason or another, this will return a new session string.- Overrides:
- getRandomSessionStrin class- PushPublishHTTPCupertino
- Returns:
- String contianing a unique string to the incoming stream
 
 - 
connectpublic void connect() - Specified by:
- connectin interface- IPushPublish
- Overrides:
- connectin class- PushPublishHTTPCupertinoCloudStorageHandler
 
 - 
disconnectpublic void disconnect(boolean hard) - Specified by:
- disconnectin interface- IPushPublish
- Overrides:
- disconnectin class- PushPublishHTTPCupertino
 
 
- 
 
-