Example usage for org.apache.hadoop.yarn.api.records.timeline TimelineEntity setDomainId

List of usage examples for org.apache.hadoop.yarn.api.records.timeline TimelineEntity setDomainId

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.api.records.timeline TimelineEntity setDomainId.

Prototype

public void setDomainId(String domainId) 

Source Link

Document

Set the ID of the domain that the entity is to be put

Usage

From source file:org.apache.tez.dag.history.ats.acls.ATSHistoryACLPolicyManager.java

License:Apache License

@Override
public void updateTimelineEntityDomain(Object timelineEntity, String domainId) {
    if (!(timelineEntity instanceof TimelineEntity)) {
        throw new UnsupportedOperationException(
                "Invalid object provided of type" + timelineEntity.getClass().getName());
    }//w  ww .j a  va 2s. c  o m
    TimelineEntity entity = (TimelineEntity) timelineEntity;
    entity.setDomainId(domainId);
}