IPushPublishProfileUtilpublic class PushPublishHTTPCupertinoUtil extends Object implements IPushPublishProfileUtil
| Modifier and Type | Field | Description |
|---|---|---|
static Class<PushPublishHTTPCupertinoUtil> |
CLASS |
|
static String |
CLASSNAME |
|
static String |
HTTPADAPTER_NAME |
|
static String |
PROPERTYNAME_TRACKER |
PROPERTY_LOG_DEBUG_MANIFEST| Constructor | Description |
|---|---|
PushPublishHTTPCupertinoUtil() |
| 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 Model
|
void |
addTagToPlaylist(PlaylistModel playlist,
TagModel tag) |
Adds the provided TagModel to the end of the list of TagModels for the provided Playlist Model
|
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) |
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 model
|
PlaylistModel |
createMediaPlaylist(int renditionIdx,
PushPublishHTTPCupertino hlsEntry,
String context,
boolean logDebugManifest) |
Creates a empty media playlist and propagates the context from this implemenation to the returned playlist
|
MediaSegmentModel |
createMediaSegmentModel(boolean debugLog) |
Creates an empty media segment model and propagates the context from the implementation to the returnd media segment model
|
TagModel |
createTag(Class<? extends TagModel> clazz,
String context) |
Create a TagModel of the provided TagModel
|
PlaylistModel |
getMediaPlaylistForRendtion(PlaylistModel masterPlaylist,
int renditionIndex) |
|
int |
getMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist) |
|
String |
getMediaSegementProgramDateTime(MediaSegmentModel mediaSegment) |
|
long |
getMediaSegementSize(MediaSegmentModel mediaSegment) |
|
long |
getMediaSegmentIndex(MediaSegmentModel mediaSegment) |
|
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 class
|
void |
setApplicationName(String appName) |
Set the application name associated with this Util class
|
void |
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 class
|
boolean |
validateEntry(java.util.Map<String,String> entry) |
Allows validation of a map file entry.
|
public static final Class<PushPublishHTTPCupertinoUtil> CLASS
public static final String CLASSNAME
public static final String HTTPADAPTER_NAME
public static final String PROPERTYNAME_TRACKER
public void addTagToPlaylist(PlaylistModel playlist, int idx, TagModel tag)
playlist - to add the TagModel toidx - index where to insert the TagModel attag - Model to insert into the list of TagModelspublic void addTagToPlaylist(PlaylistModel playlist, TagModel tag)
playlist - to add the TagModel totag - to add to the playlistpublic 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)
IPushPublishProfileUtilIPushPublishHTTPGroupMember#createGroupPlaylist(String, List>, List>, IApplicationInstance, String, WMSProperties)
Allows creation of a group playlist. (This is a placeholder for future features)createGroupPlaylist in interface IPushPublishProfileUtilid - the idgroupingsByRedundantPairs - the renditions grouped by redundant pairsgroupingsByAbrGroups - the renditions grouped by redundant ABR groupproperties - the propertiespublic PlaylistModel createMasterPlaylist(String context, boolean logDebugManifest)
public PlaylistModel createMediaPlaylist(int renditionIdx, PushPublishHTTPCupertino hlsEntry, String context, boolean logDebugManifest)
public MediaSegmentModel createMediaSegmentModel(boolean debugLog)
public TagModel createTag(Class<? extends TagModel> clazz, String context)
clazz - Class of the TagModel to createpublic PlaylistModel getMediaPlaylistForRendtion(PlaylistModel masterPlaylist, int renditionIndex)
public int getMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist)
public String getMediaSegementProgramDateTime(MediaSegmentModel mediaSegment)
public long getMediaSegementSize(MediaSegmentModel mediaSegment)
public long getMediaSegmentIndex(MediaSegmentModel mediaSegment)
public boolean isMediaSegmentDelete(MediaSegmentModel mediaSegment)
public boolean isMediaSegmentSent(MediaSegmentModel mediaSegment)
public boolean isParent(java.util.Map<String,String> entry)
IPushPublishProfileUtilisParent in interface IPushPublishProfileUtilentry - the map file entry as read from diskpublic void onDeleteEntry(java.util.Map<String,String> entry)
IPushPublishProfileUtilonDeleteEntry in interface IPushPublishProfileUtilentry - the map file entry as read from diskpublic void onReadEntry(java.util.Map<String,String> entry)
IPushPublishProfileUtilonReadEntry in interface IPushPublishProfileUtilentry - the map file entry as read from diskpublic void onWriteEntry(java.util.Map<String,String> oldEntry,
java.util.Map<String,String> newEntry)
IPushPublishProfileUtilonWriteEntry in interface IPushPublishProfileUtiloldEntry - the old version of the entry (null for new entries)newEntry - the new version of the entry to be writtenpublic void setApplicationInstance(IApplicationInstance appInstance)
IPushPublishProfileUtilsetApplicationInstance in interface IPushPublishProfileUtilpublic void setApplicationName(String appName)
IPushPublishProfileUtilsetApplicationName in interface IPushPublishProfileUtilpublic void setMediaPlaylistRenditionIndex(PlaylistModel mediaPlaylist, int index)
public void setMediaSegementProgramDateTime(MediaSegmentModel mediaSegment, String progDateTime)
public void setMediaSegementSize(MediaSegmentModel mediaSegment)
public void setMediaSegmentDelete(MediaSegmentModel mediaSegment, boolean delete)
public void setMediaSegmentIndex(MediaSegmentModel mediaSegment, long index)
public void setMediaSegmentSent(MediaSegmentModel mediaSegment, boolean sent)
public void setVHost(IVHost vhost)
IPushPublishProfileUtilsetVHost in interface IPushPublishProfileUtilpublic boolean validateEntry(java.util.Map<String,String> entry)
IPushPublishProfileUtilvalidateEntry in interface IPushPublishProfileUtilentry - the map file entry as read from disk