Class PushPublishHTTPCupertinoUtil
- Object
-
- com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertinoUtil
-
- All Implemented Interfaces:
IPushPublishProfileUtil
public class PushPublishHTTPCupertinoUtil extends Object implements IPushPublishProfileUtil
-
-
Field Summary
Fields Modifier and Type Field Description static Class<PushPublishHTTPCupertinoUtil>
CLASS
static String
CLASSNAME
static String
HTTPADAPTER_NAME
static String
PROPERTYNAME_TRACKER
-
Fields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishProfileUtil
PROPERTY_LOG_DEBUG_MANIFEST
-
-
Constructor Summary
Constructors Constructor Description PushPublishHTTPCupertinoUtil(java.util.Map<String,String> groupsMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag)
Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist Modelvoid
addTagToPlaylist(PlaylistModel playlist, TagModel tag)
Adds the provided TagModel to the end of the list of TagModels for the provided Playlist ModelManifestModel
createGroupPlaylist(String id, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties)
This method is deprecated.PlaylistModel
createMasterPlaylist(String context, boolean logDebugManifest)
Creates a master playlist and propagates the context string from this implemenation to the returned playlist modelPlaylistModel
createMediaPlaylist(int rIndex, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest)
Creates a empty media playlist and propagates the context from this implemenation to the returned playlistMediaSegmentModel
createMediaSegmentModel(boolean debugLog)
Creates an empty media segment model and propagates the context from the implementation to the returnd media segment modelTagModel
createTag(Class<? extends TagModel> clazz, String context)
Create a TagModel of the provided TagModelPlaylistModel
getMediaPlaylistForRendtion(int renditionIndex, PlaylistModel masterPlaylist)
int
getMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist)
String
getMediaSegementProgramDateTime(MediaSegmentModel mediaSegment)
long
getMediaSegementSize(MediaSegmentModel mediaSegment)
long
getMediaSegmentIndex(MediaSegmentModel mediaSegment)
int
getSubtitlesListRenditionIndex(PlaylistModel subtitlesList)
boolean
isMediaSegmentDelete(MediaSegmentModel mediaSegment)
boolean
isMediaSegmentSent(MediaSegmentModel mediaSegment)
boolean
isParent(java.util.Map<String,String> entry)
Is this a parent profile?void
onDeleteEntry(java.util.Map<String,String> entry)
Allows processing of a map file entry prior to being deleted.void
onReadEntry(java.util.Map<String,String> entry)
Allows modification of a map file entry after prior to being returned through a Push Publishing api.void
onWriteEntry(java.util.Map<String,String> oldEntry, java.util.Map<String,String> newEntry)
Allows modification of a map file entry prior to being written to the map file.void
setApplicationInstance(IApplicationInstance appInstance)
Set the application instance associated with this Util classvoid
setApplicationName(String appName)
Set the application name associated with this Util classvoid
setMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist, int index)
void
setMediaSegementProgramDateTime(MediaSegmentModel mediaSegment, String progDateTime)
void
setMediaSegementSize(MediaSegmentModel mediaSegment)
void
setMediaSegmentDelete(MediaSegmentModel mediaSegment, boolean delete)
void
setMediaSegmentIndex(MediaSegmentModel mediaSegment, long index)
void
setMediaSegmentSent(MediaSegmentModel mediaSegment, boolean sent)
void
setVHost(IVHost vhost)
Set the VHost associated with this Util classboolean
validateEntry(java.util.Map<String,String> entry)
Allows validation of a map file entry.
-
-
-
Field Detail
-
CLASS
public static final Class<PushPublishHTTPCupertinoUtil> CLASS
-
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
PROPERTYNAME_TRACKER
public static final String PROPERTYNAME_TRACKER
- See Also:
- Constant Field Values
-
HTTPADAPTER_NAME
public static final String HTTPADAPTER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
onWriteEntry
public void onWriteEntry(java.util.Map<String,String> oldEntry, java.util.Map<String,String> newEntry)
Description copied from interface:IPushPublishProfileUtil
Allows modification of a map file entry prior to being written to the map file.- Specified by:
onWriteEntry
in interfaceIPushPublishProfileUtil
- Parameters:
oldEntry
- the old version of the entry (null for new entries)newEntry
- the new version of the entry to be written
-
onReadEntry
public void onReadEntry(java.util.Map<String,String> entry)
Description copied from interface:IPushPublishProfileUtil
Allows modification of a map file entry after prior to being returned through a Push Publishing api.- Specified by:
onReadEntry
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk
-
onDeleteEntry
public void onDeleteEntry(java.util.Map<String,String> entry)
Description copied from interface:IPushPublishProfileUtil
Allows processing of a map file entry prior to being deleted.- Specified by:
onDeleteEntry
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk
-
validateEntry
public boolean validateEntry(java.util.Map<String,String> entry)
Description copied from interface:IPushPublishProfileUtil
Allows validation of a map file entry.- Specified by:
validateEntry
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk- Returns:
- true if entry is valid
-
isParent
public boolean isParent(java.util.Map<String,String> entry)
Description copied from interface:IPushPublishProfileUtil
Is this a parent profile?- Specified by:
isParent
in interfaceIPushPublishProfileUtil
- Parameters:
entry
- the map file entry as read from disk- Returns:
- true if entry is a parent profile, false if child profile or standalone
-
createGroupPlaylist
public ManifestModel createGroupPlaylist(String id, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByRedundantPairs, java.util.List<java.util.List<IPushPublishHTTPGroupMember>> groupingsByAbrGroups, IApplicationInstance appInstance, String context, WMSProperties properties)
Description copied from interface:IPushPublishProfileUtil
This method is deprecated. Please useIPushPublishHTTPGroupMember#createGroupPlaylist(String, List
Allows creation of a group playlist. (This is a placeholder for future features)- >, List
- >, IApplicationInstance, String, WMSProperties)
- Specified by:
createGroupPlaylist
in interfaceIPushPublishProfileUtil
- Parameters:
id
- the idgroupingsByRedundantPairs
- the renditions grouped by redundant pairsgroupingsByAbrGroups
- the renditions grouped by redundant ABR groupproperties
- the properties- Returns:
- the manifest model
-
createTag
public TagModel createTag(Class<? extends TagModel> clazz, String context)
Create a TagModel of the provided TagModel- Parameters:
clazz
- Class of the TagModel to create- Returns:
- a new instance of the TagModel requested
-
addTagToPlaylist
public void addTagToPlaylist(PlaylistModel playlist, TagModel tag)
Adds the provided TagModel to the end of the list of TagModels for the provided Playlist Model- Parameters:
playlist
- to add the TagModel totag
- to add to the playlist
-
addTagToPlaylist
public void addTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag)
Adds the provided TagModel to the list of TagModels at the idx for the provided Playlist Model- Parameters:
playlist
- to add the TagModel toidx
- index where to insert the TagModel attag
- Model to insert into the list of TagModels
-
createMasterPlaylist
public PlaylistModel createMasterPlaylist(String context, boolean logDebugManifest)
Creates a master playlist and propagates the context string from this implemenation to the returned playlist model- Returns:
- a new master playlist
-
createMediaPlaylist
public PlaylistModel createMediaPlaylist(int rIndex, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest)
Creates a empty media playlist and propagates the context from this implemenation to the returned playlist- Returns:
- a new media playlist
-
createMediaSegmentModel
public MediaSegmentModel createMediaSegmentModel(boolean debugLog)
Creates an empty media segment model and propagates the context from the implementation to the returnd media segment model- Returns:
- media segment model
-
setMediaPlaylistRenditionIndex
public void setMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist, int index)
-
getMediaPlaylistRenditionIndex
public int getMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist)
-
getSubtitlesListRenditionIndex
public int getSubtitlesListRenditionIndex(PlaylistModel subtitlesList)
-
getMediaPlaylistForRendtion
public PlaylistModel getMediaPlaylistForRendtion(int renditionIndex, PlaylistModel masterPlaylist)
-
setMediaSegmentIndex
public void setMediaSegmentIndex(MediaSegmentModel mediaSegment, long index)
-
getMediaSegmentIndex
public long getMediaSegmentIndex(MediaSegmentModel mediaSegment)
-
setMediaSegmentDelete
public void setMediaSegmentDelete(MediaSegmentModel mediaSegment, boolean delete)
-
isMediaSegmentDelete
public boolean isMediaSegmentDelete(MediaSegmentModel mediaSegment)
-
setMediaSegmentSent
public void setMediaSegmentSent(MediaSegmentModel mediaSegment, boolean sent)
-
isMediaSegmentSent
public boolean isMediaSegmentSent(MediaSegmentModel mediaSegment)
-
setMediaSegementSize
public void setMediaSegementSize(MediaSegmentModel mediaSegment)
-
getMediaSegementSize
public long getMediaSegementSize(MediaSegmentModel mediaSegment)
-
setMediaSegementProgramDateTime
public void setMediaSegementProgramDateTime(MediaSegmentModel mediaSegment, String progDateTime)
-
getMediaSegementProgramDateTime
public String getMediaSegementProgramDateTime(MediaSegmentModel mediaSegment)
-
setVHost
public void setVHost(IVHost vhost)
Description copied from interface:IPushPublishProfileUtil
Set the VHost associated with this Util class- Specified by:
setVHost
in interfaceIPushPublishProfileUtil
-
setApplicationName
public void setApplicationName(String appName)
Description copied from interface:IPushPublishProfileUtil
Set the application name associated with this Util class- Specified by:
setApplicationName
in interfaceIPushPublishProfileUtil
-
setApplicationInstance
public void setApplicationInstance(IApplicationInstance appInstance)
Description copied from interface:IPushPublishProfileUtil
Set the application instance associated with this Util class- Specified by:
setApplicationInstance
in interfaceIPushPublishProfileUtil
-
-