[ https://issues.apache.org/jira/browse/YARN-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14326178#comment-14326178 ]
Joep Rottinghuis commented on YARN-3041: ---------------------------------------- Agreed with [~sjlee0] that we should use an enum to enumerate the timeline entity types. Not sure if we should directly use enums, or have TimelineEntity.type be interface TimelineEntityType and have an enum that implements that interface. The latter is more extensible later on (there could be other enums implementing the interface). On the other hand that makes things a bit harder to enumerate over, so perhaps that is overkill. > [Data Model] create overall data objects of TS next gen > ------------------------------------------------------- > > Key: YARN-3041 > URL: https://issues.apache.org/jira/browse/YARN-3041 > Project: Hadoop YARN > Issue Type: Sub-task > Components: timelineserver > Reporter: Sangjin Lee > Assignee: Zhijie Shen > Attachments: Data_model_proposal_v2.pdf, YARN-3041.2.patch, > YARN-3041.3.patch, YARN-3041.4.patch, YARN-3041.preliminary.001.patch > > > Per design in YARN-2928, create the ATS entity and events API. > Also, as part of this JIRA, create YARN system entities (e.g. cluster, user, > flow, flow run, YARN app, ...). -- This message was sent by Atlassian JIRA (v6.3.4#6332)