java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKey
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.RouterMasterKeyPBImpl

public class RouterMasterKeyPBImpl extends RouterMasterKey
  • Constructor Details

    • RouterMasterKeyPBImpl

      public RouterMasterKeyPBImpl()
    • RouterMasterKeyPBImpl

      public RouterMasterKeyPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto masterKeyProto)
  • Method Details

    • getProto

      public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto getProto()
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class RouterMasterKey
    • getKeyId

      public Integer getKeyId()
      Description copied from class: RouterMasterKey
      Get the keyId of the MasterKey.
      Specified by:
      getKeyId in class RouterMasterKey
      Returns:
      MasterKeyId.
    • setKeyId

      public void setKeyId(Integer keyId)
      Description copied from class: RouterMasterKey
      Set the keyId of the MasterKey.
      Specified by:
      setKeyId in class RouterMasterKey
      Parameters:
      keyId - MasterKeyId.
    • getKeyBytes

      public ByteBuffer getKeyBytes()
      Description copied from class: RouterMasterKey
      Get the keyBytes of the DelegationKey.
      Specified by:
      getKeyBytes in class RouterMasterKey
      Returns:
      KeyBytes of the DelegationKey.
    • setKeyBytes

      public void setKeyBytes(ByteBuffer keyBytes)
      Description copied from class: RouterMasterKey
      Set the keyBytes of the DelegationKey.
      Specified by:
      setKeyBytes in class RouterMasterKey
      Parameters:
      keyBytes - KeyBytes of the DelegationKey.
    • getExpiryDate

      public Long getExpiryDate()
      Description copied from class: RouterMasterKey
      Get the ExpiryDate of the DelegationKey.
      Specified by:
      getExpiryDate in class RouterMasterKey
      Returns:
      ExpiryDate of the DelegationKey.
    • setExpiryDate

      public void setExpiryDate(Long expiryDate)
      Description copied from class: RouterMasterKey
      Set the expiryDate of the DelegationKey.
      Specified by:
      setExpiryDate in class RouterMasterKey
      Parameters:
      expiryDate - expiryDate of the DelegationKey.
    • convertFromProtoFormat

      protected final ByteBuffer convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString)
    • convertToProtoFormat

      protected final org.apache.hadoop.thirdparty.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)