Example usage for org.apache.hadoop.yarn.api.records.timeline TimelineDomain getOwner

List of usage examples for org.apache.hadoop.yarn.api.records.timeline TimelineDomain getOwner

Introduction

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

Prototype

@XmlElement(name = "owner")
public String getOwner() 

Source Link

Document

Get the domain owner

Usage

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

License:Apache License

private TimelineDomain getDomain(String domainId) {
    assertNotNull(timelineAddress);/*w ww .  j ava 2 s  .com*/
    String url = "http://" + timelineAddress + "/ws/v1/timeline/domain/" + domainId;
    LOG.info("Getting timeline domain: " + url);
    TimelineDomain domain = getTimelineData(url, TimelineDomain.class);
    assertNotNull(domain);
    assertNotNull(domain.getOwner());
    assertNotNull(domain.getReaders());
    assertNotNull(domain.getWriters());
    LOG.info("TimelineDomain for id " + domainId + ", owner=" + domain.getOwner() + ", readers="
            + domain.getReaders() + ", writers=" + domain.getWriters());
    return domain;
}