use of org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier in project hadoop by apache.
the class NMTimelinePublisher method createContainerEntity.
private static ContainerEntity createContainerEntity(ContainerId containerId) {
ContainerEntity entity = new ContainerEntity();
entity.setId(containerId.toString());
Identifier parentIdentifier = new Identifier();
parentIdentifier.setType(TimelineEntityType.YARN_APPLICATION_ATTEMPT.name());
parentIdentifier.setId(containerId.getApplicationAttemptId().toString());
entity.setParent(parentIdentifier);
return entity;
}
use of org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier in project hadoop by apache.
the class TimelineServiceV2Publisher method createContainerEntity.
private static ContainerEntity createContainerEntity(ContainerId containerId) {
ContainerEntity entity = new ContainerEntity();
entity.setId(containerId.toString());
entity.setParent(new Identifier(TimelineEntityType.YARN_APPLICATION_ATTEMPT.name(), containerId.getApplicationAttemptId().toString()));
return entity;
}
use of org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity.Identifier in project hadoop by apache.
the class TimelineServiceV2Publisher method createAppAttemptEntity.
private static ApplicationAttemptEntity createAppAttemptEntity(ApplicationAttemptId appAttemptId) {
ApplicationAttemptEntity entity = new ApplicationAttemptEntity();
entity.setId(appAttemptId.toString());
entity.setParent(new Identifier(TimelineEntityType.YARN_APPLICATION.name(), appAttemptId.getApplicationId().toString()));
return entity;
}
Aggregations