org.apache.hadoop.yarn.security
Class NMTokenIdentifier

java.lang.Object
  extended by org.apache.hadoop.security.token.TokenIdentifier
      extended by org.apache.hadoop.yarn.security.NMTokenIdentifier
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class NMTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier


Field Summary
static org.apache.hadoop.io.Text KIND
           
 
Constructor Summary
NMTokenIdentifier()
          Default constructor needed by RPC/Secret manager
NMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.NodeId nodeId, String applicationSubmitter, int masterKeyId)
           
 
Method Summary
 org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
           
 String getApplicationSubmitter()
           
 int getKeyId()
           
 org.apache.hadoop.io.Text getKind()
           
 org.apache.hadoop.yarn.api.records.NodeId getNodeId()
           
 org.apache.hadoop.security.UserGroupInformation getUser()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes, getTrackingId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KIND

public static final org.apache.hadoop.io.Text KIND
Constructor Detail

NMTokenIdentifier

public NMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
                         org.apache.hadoop.yarn.api.records.NodeId nodeId,
                         String applicationSubmitter,
                         int masterKeyId)

NMTokenIdentifier

public NMTokenIdentifier()
Default constructor needed by RPC/Secret manager

Method Detail

getApplicationAttemptId

public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()

getNodeId

public org.apache.hadoop.yarn.api.records.NodeId getNodeId()

getApplicationSubmitter

public String getApplicationSubmitter()

getKeyId

public int getKeyId()

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

getKind

public org.apache.hadoop.io.Text getKind()
Specified by:
getKind in class org.apache.hadoop.security.token.TokenIdentifier

getUser

public org.apache.hadoop.security.UserGroupInformation getUser()
Specified by:
getUser in class org.apache.hadoop.security.token.TokenIdentifier


Copyright © 2014 Apache Software Foundation. All Rights Reserved.