@InterfaceAudience.Public @InterfaceStability.Evolving public class AMRMTokenIdentifier extends TokenIdentifier
| Modifier and Type | Class and Description |
|---|---|
static class |
AMRMTokenIdentifier.Renewer |
| Constructor and Description |
|---|
AMRMTokenIdentifier() |
AMRMTokenIdentifier(ApplicationAttemptId appAttemptId) |
| Modifier and Type | Method and Description |
|---|---|
ApplicationAttemptId |
getApplicationAttemptId() |
Text |
getKind()
Get the token kind
|
UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
getBytes, getTrackingIdpublic static final Text KIND_NAME
public AMRMTokenIdentifier()
public AMRMTokenIdentifier(ApplicationAttemptId appAttemptId)
@InterfaceAudience.Private public ApplicationAttemptId getApplicationAttemptId()
public void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOExceptionpublic Text getKind()
TokenIdentifiergetKind in class TokenIdentifierpublic UserGroupInformation getUser()
TokenIdentifiergetUser in class TokenIdentifierCopyright © 2013 Apache Software Foundation. All rights reserved.