Class SharedCacheResourceReference

java.lang.Object
org.apache.hadoop.yarn.server.sharedcachemanager.store.SharedCacheResourceReference

@Private @Evolving public class SharedCacheResourceReference extends Object
This is an object that represents a reference to a shared cache resource.
  • Constructor Details

    • SharedCacheResourceReference

      public SharedCacheResourceReference(org.apache.hadoop.yarn.api.records.ApplicationId appId, String shortUserName)
      Create a resource reference.
      Parameters:
      appId - ApplicationId that is referencing a resource.
      shortUserName - ShortUserName of the user that created the reference.
  • Method Details

    • getAppId

      public org.apache.hadoop.yarn.api.records.ApplicationId getAppId()
    • getShortUserName

      public String getShortUserName()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object