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 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