public class RouterMasterKeyPBImpl extends RouterMasterKey
Constructor and Description |
---|
RouterMasterKeyPBImpl() |
RouterMasterKeyPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto masterKeyProto) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString) |
protected org.apache.hadoop.thirdparty.protobuf.ByteString |
convertToProtoFormat(ByteBuffer byteBuffer) |
boolean |
equals(Object other) |
Long |
getExpiryDate()
Get the ExpiryDate of the DelegationKey.
|
ByteBuffer |
getKeyBytes()
Get the keyBytes of the DelegationKey.
|
Integer |
getKeyId()
Get the keyId of the MasterKey.
|
org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto |
getProto() |
int |
hashCode() |
void |
setExpiryDate(Long expiryDate)
Set the expiryDate of the DelegationKey.
|
void |
setKeyBytes(ByteBuffer keyBytes)
Set the keyBytes of the DelegationKey.
|
void |
setKeyId(Integer keyId)
Set the keyId of the MasterKey.
|
String |
toString() |
newInstance, newInstance
public RouterMasterKeyPBImpl()
public RouterMasterKeyPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto masterKeyProto)
public org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto getProto()
public int hashCode()
hashCode
in class RouterMasterKey
public boolean equals(Object other)
equals
in class RouterMasterKey
public String toString()
toString
in class RouterMasterKey
public Integer getKeyId()
RouterMasterKey
getKeyId
in class RouterMasterKey
public void setKeyId(Integer keyId)
RouterMasterKey
setKeyId
in class RouterMasterKey
keyId
- MasterKeyId.public ByteBuffer getKeyBytes()
RouterMasterKey
getKeyBytes
in class RouterMasterKey
public void setKeyBytes(ByteBuffer keyBytes)
RouterMasterKey
setKeyBytes
in class RouterMasterKey
keyBytes
- KeyBytes of the DelegationKey.public Long getExpiryDate()
RouterMasterKey
getExpiryDate
in class RouterMasterKey
public void setExpiryDate(Long expiryDate)
RouterMasterKey
setExpiryDate
in class RouterMasterKey
expiryDate
- expiryDate of the DelegationKey.protected final ByteBuffer convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString)
protected final org.apache.hadoop.thirdparty.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.