Class Segment
- Object
-
- com.wowza.wms.manifest.model.ManifestModelLogging
-
- com.wowza.wms.manifest.model.m3u8.Segment
-
- All Implemented Interfaces:
Cloneable
public class Segment extends ManifestModelLogging
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.SortedMap<Long,TagModelPartialSegment>
partialSegments
protected TagModelByteRange
tagModelByteRange
protected TagModelINF
tagModelINF
protected TagModelKey
tagModelKey
protected TagModelMap
tagModelMap
protected TagModelPreFetch
tagModelPreFetch
protected TagModelProgramDateTime
tagModelProgramDateTime
protected java.util.HashSet<TagModel>
tags
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addByteRangeTag(TagModelByteRange tagModelByteRange)
boolean
addINFTag(TagModelINF tagModelINF)
boolean
addKeyTag(TagModelKey tagModelKey)
boolean
addMapTag(TagModelMap tagModelMap)
boolean
addPartialSegmentTag(TagModelPartialSegment partialSegment)
boolean
addPrefetchTag(TagModelPreFetch tagModelPreFetch)
boolean
addProgramDateTimeTag(TagModelProgramDateTime tagModelProgramDateTime)
boolean
addTag(TagModel tag)
Add a tag to the Segment model and propagate context and debug settings Do not add the TagModleURI tag, or any tag that has can be added by a public methodObject
clone()
boolean
equals(Object obj)
protected String
getContextStr()
Get the context string associated with the Model to include with the log statementsjava.util.SortedMap<Long,TagModelPartialSegment>
getPartialSegments()
Long
getSequence()
TagModelMap
getTagModelMap()
java.util.Collection<TagModel>
getTags()
String
getUri()
int
hashCode()
boolean
isComplete()
void
removePartialSegments()
boolean
removePrefetchTag()
void
setComplete(boolean isComplete)
void
setSequence(Long sequence)
void
setUri(String uri)
String
toString()
void
write(TagWriter tagWriter)
-
Methods inherited from class com.wowza.wms.manifest.model.ManifestModelLogging
getDebugLog, logDebug, logError, logError, logError, logInfo, logWarn, setDebugLog, setUseSystemOut, usingSystemOut
-
-
-
-
Field Detail
-
tags
protected java.util.HashSet<TagModel> tags
-
tagModelByteRange
protected TagModelByteRange tagModelByteRange
-
tagModelINF
protected TagModelINF tagModelINF
-
tagModelProgramDateTime
protected TagModelProgramDateTime tagModelProgramDateTime
-
tagModelMap
protected TagModelMap tagModelMap
-
tagModelPreFetch
protected TagModelPreFetch tagModelPreFetch
-
tagModelKey
protected TagModelKey tagModelKey
-
partialSegments
protected java.util.SortedMap<Long,TagModelPartialSegment> partialSegments
-
-
Method Detail
-
getTags
public java.util.Collection<TagModel> getTags()
-
getUri
public String getUri()
-
setUri
public void setUri(String uri)
-
addTag
public boolean addTag(TagModel tag)
Add a tag to the Segment model and propagate context and debug settings Do not add the TagModleURI tag, or any tag that has can be added by a public method- Parameters:
tag
- to be added to the playlist model- Returns:
- whether the tag was successfully added
-
addByteRangeTag
public boolean addByteRangeTag(TagModelByteRange tagModelByteRange)
-
addINFTag
public boolean addINFTag(TagModelINF tagModelINF)
-
addProgramDateTimeTag
public boolean addProgramDateTimeTag(TagModelProgramDateTime tagModelProgramDateTime)
-
addPartialSegmentTag
public boolean addPartialSegmentTag(TagModelPartialSegment partialSegment)
-
addMapTag
public boolean addMapTag(TagModelMap tagModelMap)
-
getTagModelMap
public TagModelMap getTagModelMap()
- Returns:
- the tagModelMap
-
addPrefetchTag
public boolean addPrefetchTag(TagModelPreFetch tagModelPreFetch)
-
removePrefetchTag
public boolean removePrefetchTag()
-
addKeyTag
public boolean addKeyTag(TagModelKey tagModelKey)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Overrides:
toString
in classObject
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classManifestModelLogging
- Throws:
CloneNotSupportedException
-
getContextStr
protected String getContextStr()
Description copied from class:ManifestModelLogging
Get the context string associated with the Model to include with the log statements- Specified by:
getContextStr
in classManifestModelLogging
- Returns:
- String
-
write
public void write(TagWriter tagWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
getSequence
public Long getSequence()
-
setSequence
public void setSequence(Long sequence)
-
removePartialSegments
public void removePartialSegments()
-
getPartialSegments
public java.util.SortedMap<Long,TagModelPartialSegment> getPartialSegments()
-
isComplete
public boolean isComplete()
-
setComplete
public void setComplete(boolean isComplete)
-
-