public class FlowRunDocument extends Object implements TimelineDocument<FlowRunDocument>
| Constructor and Description |
|---|
FlowRunDocument() |
FlowRunDocument(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext collectorContext,
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> metrics) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> |
fetchTimelineMetrics() |
String |
getClusterId() |
long |
getCreatedTime() |
String |
getFlowName() |
Long |
getFlowRunId() |
String |
getFlowVersion() |
String |
getId() |
long |
getMaxEndTime() |
Map<String,TimelineMetricSubDoc> |
getMetrics() |
long |
getMinStartTime() |
String |
getType() |
String |
getUsername() |
void |
merge(FlowRunDocument flowRunDoc)
Merge the
FlowRunDocument that is passed with the current
document for upsert. |
void |
setClusterId(String clusterId) |
void |
setCreatedTime(long createdTime) |
void |
setFlowName(String flowName) |
void |
setFlowRunId(Long flowRunId) |
void |
setFlowVersion(String flowVersion) |
void |
setId(String id) |
void |
setMaxEndTime(long maxEndTime) |
void |
setMetrics(Map<String,TimelineMetricSubDoc> metrics) |
void |
setMinStartTime(long minStartTime) |
void |
setUsername(String username) |
public FlowRunDocument()
public FlowRunDocument(org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorContext collectorContext,
Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> metrics)
public void merge(FlowRunDocument flowRunDoc)
FlowRunDocument that is passed with the current
document for upsert.merge in interface TimelineDocument<FlowRunDocument>flowRunDoc - that has to be mergedpublic String getId()
getId in interface TimelineDocument<FlowRunDocument>public void setId(String id)
public String getClusterId()
public void setClusterId(String clusterId)
public String getUsername()
public void setUsername(String username)
public String getFlowName()
public void setFlowName(String flowName)
public Long getFlowRunId()
public void setFlowRunId(Long flowRunId)
public Map<String,TimelineMetricSubDoc> getMetrics()
public void setMetrics(Map<String,TimelineMetricSubDoc> metrics)
public Set<org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric> fetchTimelineMetrics()
public long getMinStartTime()
public void setMinStartTime(long minStartTime)
public long getMaxEndTime()
public void setMaxEndTime(long maxEndTime)
public String getType()
getType in interface TimelineDocument<FlowRunDocument>public long getCreatedTime()
getCreatedTime in interface TimelineDocument<FlowRunDocument>public void setCreatedTime(long createdTime)
setCreatedTime in interface TimelineDocument<FlowRunDocument>public String getFlowVersion()
public void setFlowVersion(String flowVersion)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.