Class RouterMasterKeyPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKey
org.apache.hadoop.yarn.server.federation.store.records.impl.pb.RouterMasterKeyPBImpl
-
Constructor Summary
ConstructorsConstructorDescriptionRouterMasterKeyPBImpl(org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProto masterKeyProto) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ByteBufferconvertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString) protected final org.apache.hadoop.thirdparty.protobuf.ByteStringconvertToProtoFormat(ByteBuffer byteBuffer) booleanGet the ExpiryDate of the DelegationKey.Get the keyBytes of the DelegationKey.getKeyId()Get the keyId of the MasterKey.org.apache.hadoop.yarn.federation.proto.YarnServerFederationProtos.RouterMasterKeyProtogetProto()inthashCode()voidsetExpiryDate(Long expiryDate) Set the expiryDate of the DelegationKey.voidsetKeyBytes(ByteBuffer keyBytes) Set the keyBytes of the DelegationKey.voidSet the keyId of the MasterKey.toString()Methods inherited from class org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKey
newInstance, newInstance
-
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:
hashCodein classRouterMasterKey
-
equals
- Overrides:
equalsin classRouterMasterKey
-
toString
- Overrides:
toStringin classRouterMasterKey
-
getKeyId
Description copied from class:RouterMasterKeyGet the keyId of the MasterKey.- Specified by:
getKeyIdin classRouterMasterKey- Returns:
- MasterKeyId.
-
setKeyId
Description copied from class:RouterMasterKeySet the keyId of the MasterKey.- Specified by:
setKeyIdin classRouterMasterKey- Parameters:
keyId- MasterKeyId.
-
getKeyBytes
Description copied from class:RouterMasterKeyGet the keyBytes of the DelegationKey.- Specified by:
getKeyBytesin classRouterMasterKey- Returns:
- KeyBytes of the DelegationKey.
-
setKeyBytes
Description copied from class:RouterMasterKeySet the keyBytes of the DelegationKey.- Specified by:
setKeyBytesin classRouterMasterKey- Parameters:
keyBytes- KeyBytes of the DelegationKey.
-
getExpiryDate
Description copied from class:RouterMasterKeyGet the ExpiryDate of the DelegationKey.- Specified by:
getExpiryDatein classRouterMasterKey- Returns:
- ExpiryDate of the DelegationKey.
-
setExpiryDate
Description copied from class:RouterMasterKeySet the expiryDate of the DelegationKey.- Specified by:
setExpiryDatein classRouterMasterKey- 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)
-