TimelineDomains (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.records.timeline, class: TimelineDomains

Package org.apache.hadoop.yarn.api.records.timeline

# Class TimelineDomains

java.lang.Object
org.apache.hadoop.yarn.api.records.timeline.TimelineDomains

@Public @Evolving public class TimelineDomains extends Object
The class that hosts a list of timeline domains.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TimelineDomains()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addDomain(TimelineDomain domain)`
  Add a single domain into the existing domain list
  `void`
  `addDomains(List<TimelineDomain> domains)`
  All a list of domains into the existing domain list
  `List<TimelineDomain>`
  `getDomains()`
  Get a list of domains
  `void`
  `setDomains(List<TimelineDomain> domains)`
  Set the domain list to the given list of domains

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TimelineDomains

    public TimelineDomains()

- ## Method Details

  - ### getDomains

    public List<TimelineDomain> getDomains()
    Get a list of domains
    Returns:
      a list of domains

  - ### addDomain

    public void addDomain(TimelineDomain domain)
    Add a single domain into the existing domain list
    Parameters:
      `domain` - a single domain

  - ### addDomains

    public void addDomains(List<TimelineDomain> domains)
    All a list of domains into the existing domain list
    Parameters:
      `domains` - a list of domains

  - ### setDomains

    public void setDomains(List<TimelineDomain> domains)
    Set the domain list to the given list of domains
    Parameters:
      `domains` - a list of domains