GetResourceProfileResponse (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.protocolrecords, class: GetResourceProfileResponse

Package org.apache.hadoop.yarn.api.protocolrecords

# Class GetResourceProfileResponse

java.lang.Object
org.apache.hadoop.yarn.api.protocolrecords.GetResourceProfileResponse

@Public @Unstable public abstract class GetResourceProfileResponse extends Object
Response class for getting the details for a particular resource profile.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GetResourceProfileResponse()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object other)`
  `abstract Resource`
  `getResource()`
  Get the resources that will be allocated if the profile was used.
  `int`
  `hashCode()`
  `static GetResourceProfileResponse`
  `newInstance()`
  `abstract void`
  `setResource(Resource r)`
  Set the resources that will be allocated if the profile is used.

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

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

- ## Constructor Details

  - ### GetResourceProfileResponse

    public GetResourceProfileResponse()

- ## Method Details

  - ### newInstance

    public static GetResourceProfileResponse newInstance()

  - ### getResource

    public abstract Resource getResource()
    Get the resources that will be allocated if the profile was used.
    Returns:
      the resources that will be allocated if the profile was used.

  - ### setResource

    public abstract void setResource(Resource r)
    Set the resources that will be allocated if the profile is used.
    Parameters:
      `r` - Set the resources that will be allocated if the profile is used.

  - ### equals

    public boolean equals(Object other)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`