Class FlowActivityEntity
java.lang.Object
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
org.apache.hadoop.yarn.api.records.timelineservice.FlowActivityEntity
- All Implemented Interfaces:
Comparable<TimelineEntity>
Entity that represents a record for flow activity. It's essentially a
container entity for flow runs with limited information.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
DEFAULT_ENTITY_PREFIX, SYSTEM_INFO_KEY_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionFlowActivityEntity(String cluster, long time, String user, String flowName) FlowActivityEntity(TimelineEntity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFlowRun(FlowRunEntity run) voidaddFlowRuns(Collection<FlowRunEntity> runs) intcompareTo(TimelineEntity entity) booleanReuse the base class equals method.getDate()getId()intgetUser()inthashCode()Reuse the base class hashCode method.voidsetCluster(String cluster) voidsetDate(long time) voidsetFlowName(String flowName) voidMethods inherited from class org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity
addConfig, addConfigs, addEvent, addEvents, addInfo, addInfo, addIsRelatedToEntities, addIsRelatedToEntity, addMetric, addMetrics, addRelatesToEntities, addRelatesToEntity, getConfigs, getConfigsJAXB, getCreatedTime, getEvents, getIdentifier, getIdPrefix, getInfo, getInfoJAXB, getIsRelatedToEntities, getIsRelatedToEntitiesJAXB, getMetrics, getReal, getRelatesToEntities, getRelatesToEntitiesJAXB, getType, isValid, setConfigs, setCreatedTime, setEvents, setId, setIdentifier, setIdPrefix, setInfo, setIsRelatedToEntities, setMetrics, setRelatesToEntities, setType, setUID, toString
-
Field Details
-
CLUSTER_INFO_KEY
- See Also:
-
DATE_INFO_KEY
- See Also:
-
USER_INFO_KEY
- See Also:
-
FLOW_NAME_INFO_KEY
- See Also:
-
-
Constructor Details
-
FlowActivityEntity
public FlowActivityEntity() -
FlowActivityEntity
-
FlowActivityEntity
-
-
Method Details
-
getId
- Overrides:
getIdin classTimelineEntity
-
compareTo
- Specified by:
compareToin interfaceComparable<TimelineEntity>- Overrides:
compareToin classTimelineEntity
-
equals
Reuse the base class equals method.- Overrides:
equalsin classTimelineEntity
-
hashCode
public int hashCode()Reuse the base class hashCode method.- Overrides:
hashCodein classTimelineEntity
-
getCluster
-
setCluster
-
getDate
-
setDate
public void setDate(long time) -
getUser
-
setUser
-
getFlowName
-
setFlowName
-
addFlowRun
-
addFlowRuns
-
getFlowRuns
-
getNumberOfRuns
public int getNumberOfRuns()
-