Class TimelineEntityDocument
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.entity.TimelineEntityDocument
- All Implemented Interfaces:
TimelineDocument<TimelineEntityDocument>
public class TimelineEntityDocument
extends Object
implements TimelineDocument<TimelineEntityDocument>
This is a generic class which contains all the meta information of some
conceptual entity and its related events. The timeline entity can be an
application, an attempt, a container or whatever the user-defined object.
-
Constructor Summary
ConstructorsConstructorDescriptionTimelineEntityDocument(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity timelineEntity) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.timelineservice.TimelineEntityorg.apache.hadoop.yarn.server.timelineservice.TimelineContextlonggetId()getInfo()getType()voidmerge(TimelineEntityDocument newTimelineDocument) Merge the TimelineEntityDocument that is passed with the current document for upsert.voidsetConfigs(Map<String, String> configs) voidsetContext(org.apache.hadoop.yarn.server.timelineservice.TimelineContext context) voidsetCreatedTime(long createdTime) voidsetEvents(Map<String, Set<TimelineEventSubDoc>> events) voidsetFlowVersion(String flowVersion) voidvoidsetIdentifier(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier identifier) voidsetIdPrefix(long idPrefix) voidvoidsetIsRelatedToEntities(Map<String, Set<String>> isRelatedToEntities) voidsetMetrics(Map<String, Set<TimelineMetricSubDoc>> metrics) voidsetRelatesToEntities(Map<String, Set<String>> relatesToEntities) voidsetSubApplicationUser(String subApplicationUser) void
-
Constructor Details
-
TimelineEntityDocument
public TimelineEntityDocument() -
TimelineEntityDocument
public TimelineEntityDocument(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity timelineEntity)
-
-
Method Details
-
merge
Merge the TimelineEntityDocument that is passed with the current document for upsert.- Specified by:
mergein interfaceTimelineDocument<TimelineEntityDocument>- Parameters:
newTimelineDocument- that has to be merged
-
getId
- Specified by:
getIdin interfaceTimelineDocument<TimelineEntityDocument>
-
setId
-
getType
- Specified by:
getTypein interfaceTimelineDocument<TimelineEntityDocument>
-
setType
-
getInfo
-
setInfo
-
getMetrics
-
setMetrics
-
getEvents
-
setEvents
-
getConfigs
-
setConfigs
-
getIsRelatedToEntities
-
setIsRelatedToEntities
-
getRelatesToEntities
-
setRelatesToEntities
-
getFlowVersion
-
setFlowVersion
-
setIdentifier
public void setIdentifier(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier identifier) -
setIdPrefix
public void setIdPrefix(long idPrefix) -
getSubApplicationUser
-
setSubApplicationUser
-
getCreatedTime
public long getCreatedTime()- Specified by:
getCreatedTimein interfaceTimelineDocument<TimelineEntityDocument>
-
setCreatedTime
public void setCreatedTime(long createdTime) - Specified by:
setCreatedTimein interfaceTimelineDocument<TimelineEntityDocument>
-
getContext
public org.apache.hadoop.yarn.server.timelineservice.TimelineContext getContext() -
setContext
public void setContext(org.apache.hadoop.yarn.server.timelineservice.TimelineContext context) -
fetchTimelineEntity
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity fetchTimelineEntity()
-