java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKey
Direct Known Subclasses:
RouterMasterKeyPBImpl

@Private @Unstable public abstract class RouterMasterKey extends Object
  • Constructor Details

    • RouterMasterKey

      public RouterMasterKey()
  • Method Details

    • newInstance

      @Private @Unstable public static RouterMasterKey newInstance(Integer keyId, ByteBuffer keyBytes, Long expiryDate)
    • newInstance

      @Private @Unstable public static RouterMasterKey newInstance(RouterMasterKey masterKey)
    • getKeyId

      @Public @Unstable public abstract Integer getKeyId()
      Get the keyId of the MasterKey.
      Returns:
      MasterKeyId.
    • setKeyId

      @Private @Unstable public abstract void setKeyId(Integer keyId)
      Set the keyId of the MasterKey.
      Parameters:
      keyId - MasterKeyId.
    • getKeyBytes

      @Public @Unstable public abstract ByteBuffer getKeyBytes()
      Get the keyBytes of the DelegationKey.
      Returns:
      KeyBytes of the DelegationKey.
    • setKeyBytes

      @Private @Unstable public abstract void setKeyBytes(ByteBuffer keyBytes)
      Set the keyBytes of the DelegationKey.
      Parameters:
      keyBytes - KeyBytes of the DelegationKey.
    • getExpiryDate

      @Private @Unstable public abstract Long getExpiryDate()
      Get the ExpiryDate of the DelegationKey.
      Returns:
      ExpiryDate of the DelegationKey.
    • setExpiryDate

      @Private @Unstable public abstract void setExpiryDate(Long expiryDate)
      Set the expiryDate of the DelegationKey.
      Parameters:
      expiryDate - expiryDate of the DelegationKey.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object