Class FlowRunDocument
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.flowrun.FlowRunDocument
- All Implemented Interfaces:
TimelineDocument<FlowRunDocument>
This doc represents the flow run information for every job.
-
Constructor Summary
ConstructorsConstructorDescriptionFlowRunDocument(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext collectorContext, Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> metrics) -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric>longgetId()longlonggetType()voidmerge(FlowRunDocument flowRunDoc) Merge theFlowRunDocumentthat is passed with the current document for upsert.voidsetClusterId(String clusterId) voidsetCreatedTime(long createdTime) voidsetFlowName(String flowName) voidsetFlowRunId(Long flowRunId) voidsetFlowVersion(String flowVersion) voidvoidsetMaxEndTime(long maxEndTime) voidsetMetrics(Map<String, TimelineMetricSubDoc> metrics) voidsetMinStartTime(long minStartTime) voidsetUsername(String username)
-
Constructor Details
-
FlowRunDocument
public FlowRunDocument() -
FlowRunDocument
public FlowRunDocument(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext collectorContext, Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> metrics)
-
-
Method Details
-
merge
Merge theFlowRunDocumentthat is passed with the current document for upsert.- Specified by:
mergein interfaceTimelineDocument<FlowRunDocument>- Parameters:
flowRunDoc- that has to be merged
-
getId
- Specified by:
getIdin interfaceTimelineDocument<FlowRunDocument>
-
setId
-
getClusterId
-
setClusterId
-
getUsername
-
setUsername
-
getFlowName
-
setFlowName
-
getFlowRunId
-
setFlowRunId
-
getMetrics
-
setMetrics
-
fetchTimelineMetrics
public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> fetchTimelineMetrics() -
getMinStartTime
public long getMinStartTime() -
setMinStartTime
public void setMinStartTime(long minStartTime) -
getMaxEndTime
public long getMaxEndTime() -
setMaxEndTime
public void setMaxEndTime(long maxEndTime) -
getType
- Specified by:
getTypein interfaceTimelineDocument<FlowRunDocument>
-
getCreatedTime
public long getCreatedTime()- Specified by:
getCreatedTimein interfaceTimelineDocument<FlowRunDocument>
-
setCreatedTime
public void setCreatedTime(long createdTime) - Specified by:
setCreatedTimein interfaceTimelineDocument<FlowRunDocument>
-
getFlowVersion
-
setFlowVersion
-