@InterfaceAudience.Public @InterfaceStability.Evolving public class NMTokenIdentifier extends TokenIdentifier
| コンストラクタと説明 | 
|---|
| NMTokenIdentifier()Default constructor needed by RPC/Secret manager | 
| NMTokenIdentifier(ApplicationAttemptId appAttemptId,
                 NodeId nodeId,
                 String applicationSubmitter,
                 int masterKeyId) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| boolean | equals(Object other) | 
| ApplicationAttemptId | getApplicationAttemptId() | 
| String | getApplicationSubmitter() | 
| int | getKeyId() | 
| Text | getKind()Get the token kind | 
| NodeId | getNodeId() | 
| org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto | getProto() | 
| org.apache.hadoop.security.UserGroupInformation | getUser()Get the Ugi with the username encoded in the token identifier | 
| int | hashCode() | 
| void | readFields(DataInput in)Deserialize the fields of this object from  in. | 
| String | toString() | 
| void | write(DataOutput out)Serialize the fields of this object to  out. | 
getBytes, getTrackingIdpublic NMTokenIdentifier(ApplicationAttemptId appAttemptId, NodeId nodeId, String applicationSubmitter, int masterKeyId)
public NMTokenIdentifier()
public ApplicationAttemptId getApplicationAttemptId()
public String getApplicationSubmitter()
public int getKeyId()
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 クラス内 TokenIdentifierpublic org.apache.hadoop.security.UserGroupInformation getUser()
TokenIdentifiergetUser クラス内 TokenIdentifierpublic org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto getProto()
Copyright © 2016 Apache Software Foundation. All rights reserved.